weewonder / garglk

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

Support for automatic window margins #170

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I usually run Gargoyle maximised/fullscreen, so the values of ‘rows’ and 
‘cols’ in the settings file have no effect. To avoid overly long lines, I 
set the ‘wmarginx’ values to a very high value (suitable for my monitor and 
resolution).

It would be nice if Gargoyle supported a value (perhaps ‘auto’) for 
‘wmarginx’ and ‘wmarginy’ that would add the appropriate amount of 
space to make the ‘rows’ and ‘cols’ columns ‘work’. So if I set

cols          60
rows          36

the Gargoyle window would always display 60 columns and 36 rows of text, no 
matter how large the window was.

Note that if this was supported, adding real fullscreen support would actually 
be as simple as maximising the window and hiding the titlebar.

(Setting ‘wmarginx’ and ‘wmarginy’ for the default config does work 
well, but if one ever uses a game that needs more columns or rows, or change 
the monitor or resolution, one will have to recalculate the margin values 
manually (in practice by trial and error) to get the correct values, so an 
‘auto’ feature would be much appreciated.)

Original issue reported on code.google.com by k...@huftis.org on 11 Nov 2011 at 10:27

GoogleCodeExporter commented 8 years ago
Can you test the code in r605 and let me know if this does what you want?

You'll need the following lines in your config file:
lockrows    1
lockcols    1

You'll also need to set wmarginx and wmarginy back to a desired minimum 
(default: 20) since the window resizing code does not allow these values to 
fall below the specified amount.

Original comment by bcressey@gmail.com on 14 Jun 2012 at 10:17

GoogleCodeExporter commented 8 years ago

Original comment by bcressey@gmail.com on 14 Jun 2012 at 10:18

GoogleCodeExporter commented 8 years ago
I have now tested the change with a few games (including some using multimedia 
extensively), and it seems to work perfectly. Thanks! And I’m wondering if 
this perhaps should be the default setting?

Original comment by k...@huftis.org on 9 Jul 2012 at 6:23