Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001957Windows Inform application[IDEs] User Interfacepublic2016-10-03 04:472016-10-13 04:50
Assigned ToDavidK 
PrioritynormalSeveritymildReproducibilityhave not tried
PlatformOSOS Version
Product Version6M62 
Target VersionFixed in Version 
Summary0001957: IDE terp does not handle PNG images with gamma
DescriptionThe IDE terp does not seem to handle PNG images with gamma correctly (or perhaps it does handle them correctly, and the glulx/glk standards should recommend not using gamma), with the image not blending in with the background. [^]
Minimal Source Text To Reproduce
There is a room.

Include Simple Graphical Window by Emily Short.

Figure of map is the file "map-cove.png".

The background color of the graphics window is "007ADF".

After starting the virtual machine:
	now the currently shown picture is figure of map;
	now the current graphics drawing rule is the standard placement rule;
Additional InformationWith this image: [^]

And these extensions: [^] [^] [^] [^] [^] [^] [^] [^]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
DavidK (developer)
2016-10-13 04:50

The problem was that the front-end was decoding all PNGs with gamma-correction (using a fixed screen gamma of 2.2) for both PNGs used in the UI and in the Glulx interpreters. Since no gamma correction was applied to colours set via Glulx, these wouldn't match decoded PNGs.

I've fixed this simply by not gamma-correcting PNGs loaded into the Glulx interpreters, which also matches the behaviour of Windows Glk.

- Issue History
Date Modified Username Field Change
2016-10-03 04:47 curiousdannii New Issue
2016-10-03 04:51 curiousdannii Additional Information Updated View Revisions
2016-10-13 03:11 curiousdannii Description Updated View Revisions
2016-10-13 04:50 DavidK Note Added: 0004576
2016-10-13 04:50 DavidK Status new => resolved
2016-10-13 04:50 DavidK Resolution open => fixed
2016-10-13 04:50 DavidK Assigned To => DavidK

Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker