Comments (4)
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.
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.
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.
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)
- Program won't start HOT 4
- Brush flip/rotate functions ineffective on diagonal/straight line presets HOT 2
- Rightclicking on brush selection button with preset active is surprisingly useless HOT 1
- Mouse Cursor Slow / Lags on OSX 10.8.4 HOT 4
- Windows 7 Window blinks to black on startup HOT 1
- No keyboard shortcut for animation play/play backward
- Grid is faulty - 1x1 pixel off HOT 6
- DPaint-like draw modes HOT 2
- Load/Save palettes HOT 9
- Load/Save palettes HOT 1
- Android patches HOT 1
- relative paths should allways start from same point
- Selecting a GIF anim in the Load file selector make the application to crash
- text immission HOT 2
- Drawing in animation
- use brush as pattern fill HOT 1
- webcam or video capture via script HOT 1
- new Lua script: palette extender
- Hue shift slider
- Not the latest version of GrafX2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafx2.