dark293 / garglk

Automatically exported from code.google.com/p/garglk
Other
0 stars 0 forks source link

Wrong color in top padding of main window #116

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a game that use different colors for main window and statusline
2. Compile it and run it with gargoyle
3. Try resizing the window to make the issue even more visible

What is the expected output? What do you see instead?

The main window padding should be of the main window main background color.
It's instead in the statusline background color.
This is rather ugly if you use borders or a more complex windows arrangements 
(i.e. have another window between statusline and main window).

What version of the product are you using? On what operating system?

2009-08-25 on Windows

Please provide any additional information below.

In attachment there's an archive including a short inform6 source demostrating 
the problem, the related ulx story file, a garglk.ini (modified to add borders 
between statusline and main windows) and a screenshot.

Original issue reported on code.google.com by plucche...@gmail.com on 20 Aug 2010 at 10:08

Attachments:

GoogleCodeExporter commented 8 years ago
This is not something that can be fixed because the padding is outside the Glk 
spec. Also, the padding is a single uniform block around the game windows.

Gargoyle uses the most background color style hint for text buffers to choose 
the padding color.

Two possible workarounds:
- Add a superfluous call stylehint call after setting up and opening all your 
windows, with the desired color for the padding. For example, this would reset 
the padding color to white:
glk_stylehint_set(wintype_textbuffer, 0, stylehint_backcolor, 16777215);

- In your specific case, you are using wintype_AllTypes to set the style hints 
for the status window. If you change this to wintype_TextGrid, you should not 
encounter the issue.

Original comment by bcressey@gmail.com on 20 Aug 2010 at 8:12