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
Reportercuriousdannii 
Assigned ToDavidK 
PrioritynormalSeveritymildReproducibilityhave not tried
StatusresolvedResolutionfixed 
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.

http://imgur.com/yfRYor6 [^]
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: https://github.com/i7/counterfeit-monkey/blob/master/Counterfeit%20Monkey.materials/Figures/map-cove.png [^]

And these extensions:

https://github.com/i7/extensions/blob/master/Dannii%20Willis/Alternative%20Startup%20Rules.i7x [^]
https://github.com/i7/extensions/blob/master/Dannii%20Willis/Glk%20Events.i7x [^]
https://github.com/i7/extensions/blob/master/Dannii%20Willis/Glk%20Object%20Recovery.i7x [^]
https://github.com/i7/extensions/blob/master/Dannii%20Willis/Glulx%20Definitions.i7x [^]
https://github.com/i7/extensions/blob/master/Emily%20Short/Glulx%20Entry%20Points.i7x [^]
https://github.com/i7/extensions/blob/master/Emily%20Short/Glulx%20Text%20Effects.i7x [^]
https://github.com/i7/extensions/blob/master/Emily%20Short/Simple%20Graphical%20Window.i7x [^]
https://github.com/i7/extensions/blob/master/Jon%20Ingold/Flexible%20Windows.i7x [^]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004576)
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