3139 Commits

Author SHA1 Message Date
Adrien Destugues
e31b88ceed Palette sorting works
-still slow
-seems there is a bug in the HSL calculation for green and blue, they get sorted incorrectly
-maybe the new S parameter should be used in clustersets, because now we are not differenciating grey from red !! maybe it's done elsewhere, we'll have to check.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@291 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-20 18:14:10 +00:00
Adrien Destugues
fc41bbe89d Implemented palette sorting. There are problems as we're sortig with HSL color system and the rgb2hl function doesn't return s... we'll have to add that as we can't say if we're looking at red or grey (both have H=0).
Also, there is a problem with the makefile under linux. The .dep is set for checking the .o in the win32 folder. It still works but recompiles everything at each change.

Also added a button to enable HSL color editing in the palette screen. We'll need a hls2rgb function, and some other tweaks and reworks to the palette screen.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@290 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-19 18:52:10 +00:00
Yves Rizoud
4a3b324a52 Compilation: .o files in a subdirectory of obj/
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@289 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-18 21:55:30 +00:00
Yves Rizoud
b488ec9272 Fixed stricter compilation warnings, deleted unused asm code
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@288 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-18 19:23:35 +00:00
Adrien Destugues
20537fd58a Fixed text alignment in the about screen
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@287 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-18 16:09:49 +00:00
Yves Rizoud
568e4b7349 Implemented the Additive and Substractive modes, missing from the DOS version
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@286 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-17 23:24:41 +00:00
Yves Rizoud
8f7d11ef04 Added back the confirmation message in "Copy Spare / Some colors" function.
I shouldn't have removed it in r279, it happens because the spare page has 
unsaved changes and will be modified.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@285 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-17 22:01:22 +00:00
Yves Rizoud
a4bcfff7de (Windows) Fixed a harmless unixism : File separator /. It Worked, but may have caused programmer errors.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@284 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-17 21:49:33 +00:00
Yves Rizoud
b88187ea4c Fixed a missing refresh when moving a window by 0.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@283 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-17 21:38:14 +00:00
Yves Rizoud
9a759615ae Cleaned up some DOS leftovers.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@282 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-17 21:30:38 +00:00
Yves Rizoud
763087a626 Implemented Meilleure_couleur_sans_exclusion().
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@281 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-17 21:01:47 +00:00
Yves Rizoud
a223fcb9b6 Made the welcome screen behave like a spash screen: Any click or keypress dismisses it.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@280 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-17 19:35:02 +00:00
Yves Rizoud
30aa716ba6 "Copy Spare / Some colors" is no longer a guaranteed SEGFAULT (crash)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@279 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-17 19:21:23 +00:00
Yves Rizoud
a86ded68e4 Fixed missing refreshes in the GUI: Load/Save, Stencil, Mask, Best match colors, and all scrollbar buttons.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@278 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-17 19:09:22 +00:00
Franck Charlet
efb420f1f8 Fixed a small issue in the xcode project file for non developpers macosx users who don't have the sdl & sdl_image installed on their computers.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@275 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-17 13:54:43 +00:00
Yves Rizoud
a2d3374c9c The SVN revision used to compile is now reported in the Statistics window.
Needs testing on linux, including the cross-compilation. Pkm, see if the
naming scheme suits you.

HOWTO: "make version" and "make ziprelease" both force an update of version.c,
by querying the directory's svn status. Developers can use "make version" for
their own usage. Do not upload your version.c in svn, it's a generated file.
PACKAGING: version.c must be included in source packages, so that
non-developpers who have no svn can build with the constant file that shipped
with the sources.
Commit any pending changes first, then make ziprelease, and run
grafx2 to check that the Statistics window shows something like "123",
not "123M" (which means "rev123 + local modifications")
This will have created the src and win32 packages.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@274 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-17 00:02:33 +00:00
Franck Charlet
0f74b81151 Removed the shift + click right mouse button emulation as it looks like is already handled with the apple key.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@272 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-16 23:07:26 +00:00
Yves Rizoud
a453821325 Fixed the darn color remapping bug in Palette window, that still happened with zoomed menus (x2 x3)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@271 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-16 22:02:42 +00:00
Franck Charlet
f4e81048ab MacOSX: Fixed a bug in the filenames input and another one with the backspace key not being sent.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@270 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-16 21:55:29 +00:00
Franck Charlet
6a778031fe Handling for these formats were broken due to endianness problems on PPC: pkm img bmp gif
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@268 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-16 00:29:04 +00:00
Yves Rizoud
c395578be8 Provides an intermediate refresh mode. You can activate it in sdlscreen.c
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@267 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-15 23:33:25 +00:00
Yves Rizoud
9770d70f2a Refactored the "#ifndef __macosx__" that were around every SDL_UpdateRect().
Redraw method is now defined once, in sdlscreen.c

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@266 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-15 22:52:00 +00:00
Franck Charlet
a11b928e3d 97.2 > 97.3 (forgot that)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@265 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-15 21:02:18 +00:00
Franck Charlet
99b99322be Added the missing objective C files for the macosx and fixed the changes you forgot in main.c etc..
Also added a way to handle the right mouse button when the shift key is pressed (for mice with only have 1 button :]).

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@264 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-15 20:55:31 +00:00
Yves Rizoud
8990c1b27e Fixes missing refresh in Palette/X-Swap
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@263 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-15 19:42:04 +00:00
Yves Rizoud
dac1e814ec Fixes color mismatch under palette window when it's low and you alter a color used in the GUI and the menu bar is
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@262 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-15 19:34:45 +00:00
Adrien Destugues
4117dace60 You can now change zoom factor while in magnify mode.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@261 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-15 19:03:13 +00:00
Adrien Destugues
db9e12eda4 Fixed the screen update function... again...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@260 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-15 17:58:36 +00:00
Adrien Destugues
99d485210c Some speedup for macosx build
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@259 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-15 13:29:34 +00:00
Yves Rizoud
9434f76dfd More fixes of palette remapping. Todo: Button Swap needs a refresh, button Cancel requires a toolbar redraw.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@258 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-15 00:04:15 +00:00
Yves Rizoud
9fb162e748 Fixes the missing color remapping of windows background (and status bar) when palette remapping occurs.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@257 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-14 22:46:51 +00:00
Adrien Destugues
584c4696c1 Mac os X port. Compiles and runs slowly
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@256 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-14 20:42:05 +00:00
Adrien Destugues
0794f573cb Added all the debuggers and porters to the greetings
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@255 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-14 20:11:43 +00:00
Yves Rizoud
7ca68f33d0 Fixed many refresh problems in the Sieve menu, plus older logic bugs.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@254 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-14 19:54:22 +00:00
Adrien Destugues
ff9fc1633b AmigaOS 4 port from xeron.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@253 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-14 19:45:39 +00:00
Adrien Destugues
70a750e187 fixed screen update for cursor outside screen
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@252 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-14 19:31:16 +00:00
Adrien Destugues
ff1d5d4dd6 Fixed screen update issues.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@251 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-14 16:16:32 +00:00
Adrien Destugues
4a2bef2f6b Removed useless SDL.h include in main.c (already included in global.h)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@250 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-14 15:06:07 +00:00
Yves Rizoud
403159f9a3 Resolution in gfx2.ini is now default.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@248 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-13 21:23:43 +00:00
Adrien Destugues
47c1db98ce fixed screen update in loadfile screen when opening an empty directory (or with little number of files)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@247 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-13 20:03:21 +00:00
Adrien Destugues
b4673bf9de Fixed big ellipses
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@246 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-13 19:50:33 +00:00
Adrien Destugues
0bbed15383 Removed the useless "squares table" wich only worked for resolutions <= 1024 px.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@245 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-13 19:38:58 +00:00
Adrien Destugues
c4be0a319a Updated the makefile for proper cross building
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@244 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-13 18:16:09 +00:00
Yves Rizoud
96089af2ae Contextual help in all menus. Done!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@240 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-12 21:28:16 +00:00
Yves Rizoud
74d0b87233 Contextual help in Effects menu
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@239 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-12 19:09:29 +00:00
Adrien Destugues
1af06aec53 moved cfg folder to oldfiles dir
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@238 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-12 18:07:48 +00:00
Yves Rizoud
8a1e44ed30 Windows restore their background. Fixes/speeds-up some refreshes, and prepares for pop-up windows
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@237 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-12 17:32:46 +00:00
Yves Rizoud
e91ef156b1 Makefile fixes
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@236 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-12 14:29:27 +00:00
Adrien Destugues
2bf228cc6c Fixups for building under linux...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@235 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-12 11:07:27 +00:00
Yves Rizoud
c35f410a74 Click on Help now brings default (or last) topic, not contextual text of Help button
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@234 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-12 02:10:51 +00:00