Commit Graph

  • cee796f7d4 update the palette when selecting another color Adrien Destugues 2008-10-07 17:13:56 +00:00
  • ab3318caaf more work on the shade window. Adrien Destugues 2008-10-07 16:13:32 +00:00
  • b01b598141 ini and cfg files are not needed and will be regenerated from default settings on load Adrien Destugues 2008-10-07 14:58:03 +00:00
  • 681940ffd8 removed useless "vesa info" field in the stats window Adrien Destugues 2008-10-07 14:55:25 +00:00
  • 820df9fa2f some more screen updates, for correct display of the zoom splitbar and workspace Adrien Destugues 2008-10-07 14:39:49 +00:00
  • 8d5e4f6840 removed screen refreshing in the block drawing function and made the needed update in windows display. Should be a lot faster, but i may have missed some screen updates. Adrien Destugues 2008-10-07 14:16:48 +00:00
  • 54b4f5a121 Resolution and window size remembered in gfx2.ini. Gfx2.ini now uses hosts' end-of-line character(s) Removed Gfx2.ini from SVN, since it's automatically re-created from Gfx2.dat as needed. Yves Rizoud 2008-10-05 19:10:46 +00:00
  • e3bce08464 graphic modes are sorted Yves Rizoud 2008-10-05 14:39:25 +00:00
  • 75c772a724 (linux) Fixed signedness issue that caused previous change to behave strangely. Unsupported modes are no longer listed. (linux) Fixed a "harmless" signedness warning in LBM loader Will sort modes tomorrow, with a qsort. Yves Rizoud 2008-10-05 02:47:28 +00:00
  • 40fe3ccf09 SDL Graphics mode detection and checking if valid, CFG saves only configuration for valid modes where the user set <3 | Imperfect | Unsupported. Modes are not sorted yet (cosmetic) Yves Rizoud 2008-10-05 02:10:53 +00:00
  • 0705aae104 Fixed an incompatibilty with gfx2.cfg from DOS version. Fixed the invalid shades in the current version of gfx2.cfg : Somehow it was filled with multiple occurences of color 0(black), with a step of 0. Yves Rizoud 2008-10-04 23:47:53 +00:00
  • 7c1ecd4bb5 Fixes minimum size not taken into account if window was 320x200 before resize (issue 21). Yves Rizoud 2008-10-04 22:07:56 +00:00
  • dd984538bf Removed some old DOS code, unified (for gcc) the handling of file paths. Probably fixed some linux issues there. Fixed the filename search by typing in Save/load. Yves Rizoud 2008-10-04 21:56:02 +00:00
  • 16f642c689 monochrome brush drawing screen update Adrien Destugues 2008-10-04 20:43:01 +00:00
  • ee6106d80f XOR lines when moving windows Adrien Destugues 2008-10-04 20:37:09 +00:00
  • 1c669a2987 Displays the brush on his button Adrien Destugues 2008-10-04 20:09:09 +00:00
  • 5a2f86a4d6 set the window caption to something useful Adrien Destugues 2008-10-04 18:45:05 +00:00
  • eaa35aa9c7 Fixed the palette window : color counting works (forgot to initialize the buffer), and correct display of selected colors. Adrien Destugues 2008-10-04 18:14:29 +00:00
  • 9dac1feee7 Correct screen update for circles with gradiation. Adrien Destugues 2008-10-04 16:40:04 +00:00
  • 3a9dd17bb5 Some rework in the polyfill routine... still imperfect ... Adrien Destugues 2008-10-04 15:03:17 +00:00
  • 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. Yves Rizoud 2008-10-03 01:06:42 +00:00
  • 7bf71cd7b0 More work on endianness. Grid settings are now saved and reloaded. Yves Rizoud 2008-09-30 19:24:49 +00:00
  • 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. Adrien Destugues 2008-09-30 17:54:54 +00:00
  • 710c08e158 Some corrections. Take care of adding sdl.dll to the zip. Adrien Destugues 2008-09-30 16:37:54 +00:00
  • d5cdb4dcf0 Some modifications to the makefile to enable cross compiling a windows binary from linux. Also added a way to create a .zip ready for upload on the website. Adrien Destugues 2008-09-30 16:29:30 +00:00
  • 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 . Adrien Destugues 2008-09-30 15:12:40 +00:00
  • cd6b94f594 'make zip' now archives 'new_cfg' too Yves Rizoud 2008-09-30 02:32:33 +00:00
  • 47c511a130 Fixed the CEL loader (really) and the IMG loader Yves Rizoud 2008-09-30 02:19:17 +00:00
  • 2426b54464 Fixed CEL loader Yves Rizoud 2008-09-30 02:08:57 +00:00
  • 1c872fdbe9 Fixed the PCX loader (broken by r176) Made the calls to Error() more verbose Yves Rizoud 2008-09-30 01:58:10 +00:00
  • 58b553b511 Fixed the memory corruption that happened only in 320x200 mode (ie: after loading a small picture) Windows taller than the screen are not supported, and there's no safety. Yves Rizoud 2008-09-30 01:09:19 +00:00
  • 6cafa8a7d4 removed modesvdo.h dependancy Yves Rizoud 2008-09-29 23:26:56 +00:00
  • acfe5836ce Grafx2 can now read and convert gfx2.cfg from the original DOS (96.5%) format. Older .cfg files in svn were saved incorrectly: the wrong size of chunk #5 (0x0101 instead of 0xE1) made it impossible to re-read the file in gfxcfg. Yves Rizoud 2008-09-29 23:15:08 +00:00
  • 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. Yves Rizoud 2008-09-27 22:11:17 +00:00
  • 48fca5ceb3 When gfx2.ini is missing, default values are now taken from gfx2.dat. Removed a custom toupper() function. Yves Rizoud 2008-09-27 20:17:00 +00:00
  • 7197a98fe3 Added constants for shift/ctrl/alt modifiers Yves Rizoud 2008-09-27 17:12:11 +00:00
  • 554b765ce3 Added constants for shift/ctrl/alt modifiers Yves Rizoud 2008-09-27 17:11:46 +00:00
  • 8ec86f1899 gfxcfg now uses SDL keysyms for input, you can test it to check how SDL understands keys on your platform. The utility still doesn't load gfx2.cfg, and still saves is badly. Fixed more hardcoded scancodes (shade menu). Yves Rizoud 2008-09-27 16:53:26 +00:00
  • 089f8ca225 modesvdo.h does not exists ! Adrien Destugues 2008-09-27 11:33:52 +00:00
  • 73ca66c084 Keyboard: Converted hardware scancodes to SDL keysyms. Version becomes 97.0%, Charger_CFG() auto-converts 96.5% format as needed. Yves Rizoud 2008-09-26 23:08:21 +00:00
  • a7202fa2f6 Fixed character '+/-' in many menus. Yves Rizoud 2008-09-25 21:32:58 +00:00
  • 8c9f66625d Makefile: "zip" target to create a .tgz source archive. Docs: added GPL license. Yves Rizoud 2008-09-25 19:13:01 +00:00
  • e219797b16 Implemented a time simulator for Wait_VBL() Yves Rizoud 2008-09-25 18:53:16 +00:00
  • 7f67d41f86 Save/Load: (windows) Options "Show hidden files" and "Show hidden dirs" now work. Yves Rizoud 2008-09-25 18:35:23 +00:00
  • 51a4b91b91 Save/Load: (linux) .. now appears, and options "Show hidden files" and "Show hidden dirs" now work. Yves Rizoud 2008-09-25 18:24:26 +00:00
  • 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) Yves Rizoud 2008-09-25 16:37:50 +00:00
  • 2a66650568 Removed a "#pragma once", made Makefile.dep be the same on all platforms. Yves Rizoud 2008-09-25 13:51:50 +00:00
  • 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. Yves Rizoud 2008-09-19 00:24:00 +00:00
  • 204dee8549 Display is now using RGB range 0-255 instead of 0-250. Yves Rizoud 2008-09-17 22:43:59 +00:00
  • 2e3a9c387f Save/Load: Typing letters to find matching file is now case-insensitive. Yves Rizoud 2008-09-17 22:38:53 +00:00
  • 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 Yves Rizoud 2008-09-16 23:22:18 +00:00
  • 9cae113c99 Save/Load allows editing very long file names, still imperfect Yves Rizoud 2008-09-16 00:28:22 +00:00
  • 87c3f89763 fix linux build, following r153 Yves Rizoud 2008-09-15 22:03:06 +00:00
  • b380fb28df Fixed display of characters >127 (alpha, beta, etc). Save/Load: Improved display of filenames too long to display entirely. Yves Rizoud 2008-09-15 21:53:37 +00:00
  • 9186bbdf17 Save/Load: Fixed a boolean bug that made some directories invisible: ".." ".*" "?" (Single-letter directories. I have them.) Yves Rizoud 2008-09-15 21:09:54 +00:00
  • 646ac6235f Save/Load: Added drive icons (also linux, but untested) Yves Rizoud 2008-09-15 21:00:11 +00:00
  • ca9115aba6 Moved two loading functions from op_c.c to loadsave.c and converted to fopen/read_bytes. Adrien Destugues 2008-09-15 07:06:41 +00:00
  • a3f2b7c2f8 Save/Load: Allows long filenames of mixed case. File extensions lowercase by default. Confirmation of Deleting a file no longer hangs. Yves Rizoud 2008-09-15 00:32:08 +00:00
  • e4d2764ee2 fix Saving that was broken in r148 Yves Rizoud 2008-09-14 20:27:42 +00:00
  • d930788731 I/O converted to use fopen,fread,fwrite. Yves Rizoud 2008-09-14 20:21:46 +00:00
  • f90388d670 implemented Palette_64_to_256() Yves Rizoud 2008-09-14 19:23:46 +00:00
  • 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. Yves Rizoud 2008-09-14 18:07:17 +00:00
  • beea105ef7 Enabled keyboard repeat (maybe not in the best way). Fixed FX/Feedback button that couldn't be switched off. Yves Rizoud 2008-09-14 00:50:18 +00:00
  • 77f3c5763e Work on directory handling in save/load, Mingw support for the config utility, with a larger font I made some time ago (I hoped the e' would work for Be'zier curves, but no) Yves Rizoud 2008-09-14 00:11:55 +00:00
  • 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. Yves Rizoud 2008-09-13 20:05:16 +00:00
  • 0eaba7e952 Fixed endianness of PCX i/o, increased buffer size of file paths everywhere. Yves Rizoud 2008-09-13 00:24:25 +00:00
  • b3bcf1d841 Files are now opened in binary mode. Saving/Loading now works on windows (It didn't previously - including in the Yves Rizoud 2008-09-12 22:51:52 +00:00
  • 2e78536bf2 More work on the config tool Adrien Destugues 2008-09-12 12:37:27 +00:00
  • 796e6f788c Scrolling in the list Adrien Destugues 2008-09-12 11:58:03 +00:00
  • 996814641d Still working on the config. Full list of options, but does not scroll Adrien Destugues 2008-09-12 11:27:21 +00:00
  • 78cfc787ad Fixed linux build with new makefile Adrien Destugues 2008-09-12 07:55:47 +00:00
  • e81b943732 Dependency file, missing from rev 133 Yves Rizoud 2008-09-12 00:02:55 +00:00
  • 3894c39631 Updated makefile for MingW support, fixed some strict compilation warnings. Yves Rizoud 2008-09-11 23:40:06 +00:00
  • cd2af629d4 Builds chade.o and link it. Adrien Destugues 2008-09-11 12:36:05 +00:00
  • ccf08d6229 Removed a bad include. Should avoid errors when linking Adrien Destugues 2008-09-11 12:11:30 +00:00
  • 38258d1cda git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@130 416bcca6-2ee7-4201-b75f-2eb2f807beb1 Yves Rizoud 2008-09-10 23:22:26 +00:00
  • eb0138d9ae Fixed various bugs in key list scrolling among other things Adrien Destugues 2008-09-10 12:06:36 +00:00
  • 9667f8ab6d till working on the configuration tool Adrien Destugues 2008-09-10 10:44:41 +00:00
  • 683364bc10 Some more work on the config tool Adrien Destugues 2008-09-09 15:09:30 +00:00
  • a8d54ab31f Start of the new configuration file engine. Still needs some work. See "cfg" folder for the old pascal version. Adrien Destugues 2008-09-08 21:13:26 +00:00
  • 2b609d6e03 -BMP Loading -Fixed PCX loading -Some work on ILBM loading -Little adaptation for long filenames (does not crash anymore, but there are display bugs) -Some other small fixes i can't remember Adrien Destugues 2008-08-14 20:21:11 +00:00
  • fce305c1eb Floyd Steinberg dithering enabled on 24b picture loading... doesn' t give very impressing results on my test picture, however... Adrien Destugues 2008-08-13 18:05:17 +00:00
  • 867ac703ca Working palette reduction ! You can now load 24b pcx images ! Adrien Destugues 2008-08-13 17:31:32 +00:00
  • b6986f2b56 All brush effects working ! Adrien Destugues 2008-08-12 17:52:55 +00:00
  • db93420369 Some more brush effects Adrien Destugues 2008-08-12 17:14:09 +00:00
  • 027ffd4bf5 Smoothing, QuickShade. Adrien Destugues 2008-08-12 16:52:20 +00:00
  • 48cadad912 You can now move windows. Warning, floyd steinberg dithering disabled for debugging purposes Adrien Destugues 2008-08-10 17:19:14 +00:00
  • d9cc87b669 Set_color did not divide colors by 4 for VGAcompatibility Adrien Destugues 2008-08-10 13:18:58 +00:00
  • 2c187ef632 Corrected the palette reduction system. Gif loading now OK Adrien Destugues 2008-08-10 13:00:13 +00:00
  • 216ea8c9c2 pi1 and paletized pcx loading works. Saving untested, truecolor pcx still broken (but does not crash and preview seems ok ?!) Adrien Destugues 2008-08-10 10:25:29 +00:00
  • bf0127e306 Working load and save for PKM files ! Adrien Destugues 2008-08-09 21:14:33 +00:00
  • 2091a1b071 Added various sample pictures to test the save and load. Also modified the release script to include the dlls to the zipfile. Adrien Destugues 2008-08-09 20:25:26 +00:00
  • 804ba92a85 A little script to make a .zip release of the windows binary, ready to post on the website Adrien Destugues 2008-08-09 17:32:27 +00:00
  • c2cea23256 Some modifications to the watcom project file... again... this times to make it build under wine :) Adrien Destugues 2008-08-09 17:27:06 +00:00
  • ce4f050709 Removed some accents in two filenames to avoid problems with some locale settings when doing a checkout Adrien Destugues 2008-08-09 15:36:49 +00:00
  • cdf5a760b2 fixes to build under vista Adrien Destugues 2008-08-07 19:59:00 +00:00
  • bcced2c747 wait vbl, set color, and ability to compile a fullscreen build Adrien Destugues 2008-08-06 16:48:34 +00:00
  • 3bf7246855 Saving a picture and loading it back works, but there are struct misalignment problems, asved file will NOT be compatible with other tools Adrien Destugues 2008-08-02 15:38:00 +00:00
  • aaf7bc09fa Some work on file loading Adrien Destugues 2008-08-01 13:17:29 +00:00
  • 3896168ca4 Corrected help window and sprite display in menu. Screen was not updated. Adrien Destugues 2008-08-01 12:27:28 +00:00