42 Commits

Author SHA1 Message Date
Adrien Destugues
eaa35aa9c7 Fixed the palette window : color counting works (forgot to initialize the buffer), and correct display of selected colors.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@191 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-04 18:14:29 +00:00
Adrien Destugues
9dac1feee7 Correct screen update for circles with gradiation.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@190 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-04 16:40:04 +00:00
Adrien Destugues
3a9dd17bb5 Some rework in the polyfill routine... still imperfect ...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@189 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-04 15:03:17 +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
Adrien Destugues
3c1fc67ca8 Fixed afficher_ligne_transparente_zoomée, used a byte for counting horizontal pixels, obviously causing an overflow and incorrect drawing. Now color brushes are always displayed correctly, including in zomm mode.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@186 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-30 17:54:54 +00:00
Adrien Destugues
92c4340dbd 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
2008-09-30 15:12:40 +00:00
Yves Rizoud
11a4a488a6 Changed all the remaining OEM characters in the source code into Windows-1252.
Except in aide.c, because the strings are printed with an OEM font.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@175 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-27 22:11:17 +00:00
Yves Rizoud
73ca66c084 Keyboard: Converted hardware scancodes to SDL keysyms.
Version becomes 97.0%, Charger_CFG() auto-converts 96.5% format as needed.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@169 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-26 23:08:21 +00:00
Yves Rizoud
ca8be4e399 Save/Load: Fixed backspace, limit 255 characters, various fixes for long filenames,
(linux) drive '~' uses $HOME environment variable.
Fixed some more struct packing issues (ex: GIF saving)

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@163 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-25 16:37: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
b380fb28df Fixed display of characters >127 (alpha, beta, etc).
Save/Load: Improved display of filenames too long to display entirely.



git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@155 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-15 21:53:37 +00:00
Yves Rizoud
3894c39631 Updated makefile for MingW support, fixed some strict compilation warnings.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@133 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-11 23:40:06 +00:00
Adrien Destugues
3896168ca4 Corrected help window and sprite display in menu. Screen was not updated.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@89 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-08-01 12:27:28 +00:00
Adrien Destugues
21dacf51f1 Some work on brush operations. Resize, rotate, flip,... Still some work needed for correct brush preview in zoomed mode.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@87 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-08-01 11:18:56 +00:00
Adrien Destugues
acef837b12 Picture limits are displayd correctly
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@86 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-31 21:23:30 +00:00
Adrien Destugues
14191db899 Scroll_picture
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@84 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-30 22:03:03 +00:00
Adrien Destugues
7e48434e19 Right click is working. You can stop drawing polylines and do various other things
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@83 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-30 20:08:02 +00:00
Adrien Destugues
6f9b6c977d Lines and curves are working.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@79 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-30 17:52:59 +00:00
Adrien Destugues
d40d948c78 Proper screen update on zoomed fill
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@78 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-30 13:34:21 +00:00
Adrien Destugues
1f15bfbc3f Filling works ! *NEVER* put a ; after a for() !
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@77 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-30 13:06:44 +00:00
Adrien Destugues
0bd265706a Gradient circles.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@76 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-29 17:22:11 +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
e2a92f8b69 Made some corrections to the makefile to make it build under linux again :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@67 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-28 12:02:39 +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
ae9a534ad8 Working on the filling routine (still broken)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@65 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-26 12:30:42 +00:00
Adrien Destugues
734b305afb Avoid crash when drawing offscreen (circles for example)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@63 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-25 08:02:43 +00:00
Adrien Destugues
0797a72c70 circle drawing
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@62 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-24 19:02:41 +00:00
Adrien Destugues
bf4c695deb proper updating on a zoomed screen
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@61 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-24 16:42:44 +00:00
Adrien Destugues
a90c04af77 Debugged mouse cursor erasing !
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@60 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-24 13:16:03 +00:00
Adrien Destugues
6233c24a9d More work on screen updates : handling of cursor display (but not erasing :(), and update of the menu buttons. Also, big speedup on text drawing.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@59 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-24 10:13:46 +00:00
Adrien Destugues
69a0795f50 Some work to improve zoom window.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@58 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-22 15:29:36 +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
4ba7550bfc Corrected Memoire_libre to take account of mem_unit in the sysinfo
struct


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@55 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-22 08:25:39 +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
750e68ed35 Drawing works !
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@53 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-04-05 15:53:46 +00:00
Adrien Destugues
a6ea5950f6 Lots of speedup-cleanup-debug. Menu is usable, we need to implement drawing functions now...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@39 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-11-03 19:12:03 +00:00
Adrien Destugues
97c2c93537 Text drawing working
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@26 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-09-20 16:07:02 +00:00
Adrien Destugues
28e0cdbaf1 First drawing functions. We can see the interface !
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@25 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-09-20 15:37:39 +00:00
Adrien Destugues
7c4b0858da Even more cleanup
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@15 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-08-13 21:03:51 +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
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