Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 27, 2024
In my opinion:
As long as the list of resolutions is hard-coded, the windowed mode has to be 
be a 
single "dummy" resolution in the list, with no specific width and height.
If we set it as the "safe mode" for all our supported OSes (linux, windows), 
then 
the existing shortcut for safe resolution (shift+enter) will come back from 
fullscreen to window.
The window size can easily (?) be changed by dragging a window edge with the 
mouse, 
catching the event SDL_VIDEORESIZE within the program.
Window width and height can be saved and reloaded with the .ini or .cfg 
settings.

Original comment by yrizoud on 18 Sep 2008 at 2:45

from grafx2.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 27, 2024
That's a good idea, the only problem is the resizing needs to update various 
global 
variables and that will fuck up everything if the program is processing 
something 
meanwhile. But that should not happen because we catch event only in the 
Get_input() 
function, ie when the program is idle and waiting for user input.

The other small problem is the menu, there is a zoom factor wich is set up for 
each 
mode (two variables, Menu_Facteur_X and Menu_Facteur_Y. When resizing, you'll 
have 
to decide when to go from x1 to x2 (or x3 or more ?)
I guess a good heuristic would be
-The menu height should be less than 1/4 of the total height
-The menu width should be less than 3/4 of the total, the remaining space being 
filled by the palette (wich is "elastic")

Please keep both variables even if you choose to have them being always equal, 
as 
i'm planning to add some modes with rectangles pixels for drawing pictures in 
the 
Amstrad CPC weird videomodes.

Original comment by [email protected] on 18 Sep 2008 at 3:00

from grafx2.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 27, 2024
Done around r180-r185.
the video modes are now either fullscreen or windowed. The list of fullscreen 
modes 
is built from a copy of the windowed ones. However, the fulscreen and windowed 
modes 
share the same information in the cfg file and the way there are handled is 
quite 
hacky.
The only visible artifact is if you select a fullscreen mode, the program will 
switch back to windowed when you exit and relauch, because the selected mode 
will 
not be saved in the .cfg file as it should.

Anyways, we will need some cleanup in this area if we want to add 16/32bit 
truecolor 
modes someday :) (may be useful for layers transparency even if the picture is 
still 
256colors, for example).

Original comment by [email protected] on 30 Sep 2008 at 5:09

  • Added labels: OpSys-All

from grafx2.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 27, 2024
Fixed.
You can now have a resizeable window.

Original comment by [email protected] on 4 Oct 2008 at 2:06

  • Changed state: Fixed

from grafx2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.