Franck Charlet 
							
						 
					 
					
						
						
						
						
							
						
						
							08f0541f11 
							
						 
					 
					
						
						
							
							x-swap and swap should be fixed (i forgot to refresh the main palette in such cases).  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@300 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2008-10-22 03:16:39 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Franck Charlet 
							
						 
					 
					
						
						
						
						
							
						
						
							c3182555b9 
							
						 
					 
					
						
						
							
							I noticed modifying the logical palette only wasn't effective in fullscreen mode so i modified the palette functions to act a little bit differently: the physical palette is only refreshed globally after all locals colors are modified, that should hopefully fix the speed issue as it looks like there's also a vblank wait when the physical palette is modified (that's how it acts on mac).  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@293 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2008-10-21 01:44:46 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Franck Charlet 
							
						 
					 
					
						
						
						
						
							
						
						
							2b232bbc48 
							
						 
					 
					
						
						
							
							Improved the speed of the spread and swap commands in the palette window by only refreshing the logical palette instead of the physical one (at least it works on MacOSX, i don't know if it's any good on other versions)  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@292 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2008-10-20 20:08:26 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								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 
							
						 
					 
					
						
						
						
						
							
						
						
							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 
							
						 
					 
					
						
						
						
						
							
						
						
							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 
							
						 
					 
					
						
						
						
						
							
						
						
							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  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								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 
							
						 
					 
					
						
						
						
						
							
						
						
							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  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								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 
							
						 
					 
					
						
						
						
						
							
						
						
							5fd1e42ea0 
							
						 
					 
					
						
						
							
							Copyright notices in source files  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@217 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2008-10-08 19:40:47 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Adrien Destugues 
							
						 
					 
					
						
						
						
						
							
						
						
							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.  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@205 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2008-10-07 14:16:48 +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 
							
						 
					 
					
						
						
						
						
							
						
						
							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 
							
						 
					 
					
						
						
						
						
							
						
						
							7197a98fe3 
							
						 
					 
					
						
						
							
							Added constants for shift/ctrl/alt modifiers  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@173 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2008-09-27 17:12:11 +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 
							
						 
					 
					
						
						
						
						
							
						
						
							a7202fa2f6 
							
						 
					 
					
						
						
							
							Fixed character '+/-' in many menus.  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@168 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2008-09-25 21:32:58 +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 
							
						 
					 
					
						
						
						
						
							
						
						
							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 
							
						 
					 
					
						
						
						
						
							
						
						
							635f8e5154 
							
						 
					 
					
						
						
							
							First compile-able version!  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@16 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2007-08-14 07:35:32 +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