Video modes can now be windowed or fullscreen. Quite hacky, however. We would need a way to :

-Easily change the number of video modes in the list (i'd like to use my 1440x900 screen at full resoluution !)
-Maybe add a resizeable window mode, but that would require more work, so i'd like to keep that for 2.0 .

In the meantime, i've made the list symetric, ie, mode are loaded from the cfg file and when the list is processed, each mode is copied to a fullscreen equivalent. Note this way of doing things will prevent the config file to save the selected video mode properly, so the program will switch to the default 800x600 windowed. When you load an image, Grafx2 will switch back to windowed mode when selecting the appropriate resolution for that image.

The NB_MODES_VIDEO constant is also only the HALF of the actually available video modes


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@183 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-09-30 15:12:40 +00:00
parent cd6b94f594
commit 92c4340dbd
8 changed files with 119 additions and 1456 deletions

View File

@@ -2,13 +2,13 @@
ifdef COMSPEC
DELCOMMAND = del
BIN = grafx2.exe
COPT = -Wall -O -g -ggdb -Dmain=SDL_main $(SCREEN)
COPT = -Wall -O -g -ggdb -Dmain=SDL_main
LOPT = -mwindows -lmingw32 -lSDLmain -lSDL -lshlwapi
else
# Linux specific
DELCOMMAND = rm -rf
BIN = grafx2
COPT = -Wall -c -g $(SCREEN)
COPT = -Wall -c -g
LOPT = -lSDL -o $(BIN)
endif
@@ -17,7 +17,6 @@ endif
CC = gcc
OBJ = main.o init.o graph.o sdlscreen.o divers.o special.o boutons.o palette.o aide.o operatio.o pages.o loadsave.o readline.o moteur.o files.o op_c.o linux.o op_asm.o readini.o saveini.o shade.o clavier.o io.o
SCREEN = -D WINDOWED
OBJDIR = obj/
all : $(BIN)