Adrien Destugues
5a2f86a4d6
set the window caption to something useful
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@192 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-04 18:45:05 +00:00
Yves Rizoud
7ba9a726dc
Implemented window sizing (and re-sizing) by draggin window edges.
...
Unfinished, more work needed in:
* command-line arguments (grafx2 myimage.pcx -width 640 -height 480)
* querying SDL for best modes
* detecting bad modes and recovering (though shift+return restores to window)
* saving settings in gfx2.ini.
Also, now the window's close button triggers Quit. Both events (quit, resize)
are only taken into account when all menus are closed.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@188 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-03 01:06:42 +00:00
Yves Rizoud
1c872fdbe9
Fixed the PCX loader (broken by r176)
...
Made the calls to Error() more verbose
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@179 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-30 01:58:10 +00:00
Yves Rizoud
48fca5ceb3
When gfx2.ini is missing, default values are now taken from gfx2.dat.
...
Removed a custom toupper() function.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@174 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-27 20:17:00 +00:00
Yves Rizoud
2a66650568
Removed a "#pragma once", made Makefile.dep be the same on all platforms.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@162 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-25 13:51:50 +00:00
Yves Rizoud
f26c8fe9f1
Save/Load: Much better filename input, can enter French keys and characters.
...
The text functions now apply a Windows-1252 -> OEM conversion, since the two
main fonts are an OEM code page.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@161 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-19 00:24:00 +00:00
Yves Rizoud
7175fe7b17
"Help" text is now hard-coded in tables_aide.h and compiled into the exe,
...
instead of being encrypted in the middle of gfx.dat
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@158 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-16 23:22:18 +00:00
Yves Rizoud
2f5c16a8a0
Support for long file names in file selector, up to 27char.
...
Cleanup in the Load/Save function for all formats, preparing for big endianness fix.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@146 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-14 18:07:17 +00:00
Yves Rizoud
37ca8d13aa
More work on endianness,
...
fixed the save/load box to display names in 8+3 format,
files can now be loaded in command-line.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@142 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-13 20:05:16 +00:00
Adrien Destugues
2536cb6e88
Some corrections for windows drawing (preview Degradés, sprites special effects)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@75 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-29 16:58:49 +00:00
Adrien Destugues
b2f9193e85
Made it compile under windows with Open Watcom
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@66 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-27 21:04:12 +00:00
Adrien Destugues
b458b4787e
Improved display of Statistics window. Corrected color counting function
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@57 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-22 10:18:18 +00:00
Adrien Destugues
b184c1ca0f
No longer updates the whole screen when painting. The program now runs
...
MUCH faster and begins to be useable :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@56 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-22 09:21:38 +00:00
Adrien Destugues
272506e850
Fixed all warnings, some little bugs, and improved compatibility with >1GB RAM
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@54 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-21 12:47:32 +00:00
Adrien Destugues
689e6a21ed
Restore screen resolution on quit. Clean SDL freeing.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@41 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-11-11 18:59:25 +00:00
Adrien Destugues
49e7f9739d
Endianness and structure alignment fixes. Main loop running. Letsstart implementing SDL video :)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@20 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-09-18 18:02:07 +00:00
Adrien Destugues
dca8234941
Loading of gfx2.dat is ok
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@18 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-08-14 09:49:25 +00:00
Adrien Destugues
57fa46de8c
Big cleanup, proper makefile
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@12 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-08-13 18:41:50 +00:00
Adrien Destugues
e4ab3b7749
?
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@10 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-07-09 12:39:06 +00:00
Adrien Destugues
306a004e36
First upload of the code.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-04-14 20:18:30 +00:00