Thomas Bernard 
							
						 
					 
					
						
						
						
						
							
						
						
							72fea0290f 
							
						 
					 
					
						
						
							
							isolate dependencies to SDL  
						
						 
						
						... 
						
						
						
						Do not access directly the SDL_Surface Screen_pixels
use new functions Get_Screen_pixel_ptr() Set_Screen_pixel(),
Get_Screen_pixel()
And SetPalette()
Signed-off-by: Thomas Bernard <miniupnp@free.fr> 
						
						
					 
					
						2018-07-02 11:38:51 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Thomas Bernard 
							
						 
					 
					
						
						
						
						
							
						
						
							92facef46d 
							
						 
					 
					
						
						
							
							Convert comments to UTF-8  
						
						 
						
						... 
						
						
						
						most were encoded in Latin1 / CP1252
but a few lines in op_c.c were using IBM437/850 ! 
						
						
					 
					
						2018-06-26 11:37:19 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Thomas Bernard 
							
						 
					 
					
						
						
						
						
							
						
						
							f9616f570a 
							
						 
					 
					
						
						
							
							remove warnings when compiling with MSVC++2010  
						
						 
						
						
						
						
					 
					
						2018-03-19 16:49:32 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Thomas Bernard 
							
						 
					 
					
						
						
						
						
							
						
						
							6be7cb1e9f 
							
						 
					 
					
						
						
							
							move circle/ellipse functions from misc.c to graph.c  
						
						 
						
						... 
						
						
						
						void Ellipse_compute_limites(short horizontal_radius,short vertical_radius);
byte Pixel_in_ellipse(void);
byte Pixel_in_circle(void); 
						
						
					 
					
						2018-03-10 00:46:11 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Thomas Bernard 
							
						 
					 
					
						
						
						
						
							
						
						
							6f48d7fefe 
							
						 
					 
					
						
						
							
							Add MSVC 2010 project file and a make the project compile  
						
						 
						
						
						
						
					 
					
						2018-02-20 15:45:45 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Adrien Destugues 
							
						 
					 
					
						
						
						
						
							
						
						
							837773ea1d 
							
						 
					 
					
						
						
							
							Fix build with gcc2  
						
						 
						
						... 
						
						
						
						Partial initializers are not supported. This is not needed anyway, the
variable will be in .bss so it will be cleared to 0 by default. 
						
						
					 
					
						2018-01-24 19:51:33 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Thomas Bernard 
							
						 
					 
					
						
						
						
						
							
						
						
							a53d6da6ea 
							
						 
					 
					
						
						
							
							Add visible_image and  backups to the T_Document structure  
						
						 
						
						
						
						
					 
					
						2018-01-22 16:16:39 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Thomas Bernard 
							
						 
					 
					
						
						
						
						
							
						
						
							8ae651c75f 
							
						 
					 
					
						
						
							
							put common fields for Main and Spare page in a T_Document structure  
						
						 
						
						
						
						
					 
					
						2018-01-22 14:46:44 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Thomas Bernard 
							
						 
					 
					
						
						
						
						
							
						
						
							aeca7af074 
							
						 
					 
					
						
						
							
							Add comment about Current_palette  
						
						 
						
						
						
						
					 
					
						2018-01-22 13:46:13 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Thomas Bernard 
							
						 
					 
					
						
						
						
						
							
						
						
							08e3c6bebf 
							
						 
					 
					
						
						
							
							Fix issue 46 : part 2  
						
						 
						
						... 
						
						
						
						in Error(0) the palette was not properly restored
as it was always restored to the Main_palette.
Now we really restore the right palette !
Also clarified/simplified the change directory code in case of error.
http://pulkomandy.tk/projects/GrafX2/ticket/46  
						
						
					 
					
						2018-01-22 13:46:13 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Adrien Destugues 
							
						 
					 
					
						
						
						
						
							
						
						
							9c6f343215 
							
						 
					 
					
						
						
							
							Patch by Thomas Bernard to fix compilation on FreeBSD.  
						
						 
						
						... 
						
						
						
						Thanks!
Fixes  #50 .
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2173 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2017-01-03 18:25:35 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yves Rizoud 
							
						 
					 
					
						
						
						
						
							
						
						
							064bbebc5b 
							
						 
					 
					
						
						
							
							Fix part of issue 459: In anim mode, Color-replacer didn't refresh the screen  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1943 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2012-04-08 14:45:56 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yves Rizoud 
							
						 
					 
					
						
						
						
						
							
						
						
							e73eb2786a 
							
						 
					 
					
						
						
							
							Animation now has correct visual display and input feedback. Loading GIF guesses it's an anim if it loops, layers otherwise : Some rare non-looping GIF anims (usaully broken) will be misunderstood as layered. Editing of anims and layers seems flawless and stable. Still requires an auto-switch to the best toolbar (anim/layers) when relevant, but you can already switch manually.  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1910 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2012-03-02 23:19:47 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yves Rizoud 
							
						 
					 
					
						
						
						
						
							
						
						
							55d0889bc8 
							
						 
					 
					
						
						
							
							Change rendering system to use function pointers, see Issue 31 c38 : preliminary work to make the same executable handle Layers or Anims. Fixed an old issue where Lasso-ing a brush with right mouse button wouldn't erase cleanly (visual). Fixed an old issue where picking colors in layer 5 would not 'see' through layers.  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1906 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2012-02-22 23:47:53 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Adrien Destugues 
							
						 
					 
					
						
						
						
						
							
						
						
							ad7e0d3f1a 
							
						 
					 
					
						
						
							
							OpenBSD compatibiliy patch from issue 461.  
						
						 
						
						... 
						
						
						
						Thanks !
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1886 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2012-01-01 13:05:45 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yves Rizoud 
							
						 
					 
					
						
						
						
						
							
						
						
							8fb16e7089 
							
						 
					 
					
						
						
							
							Re-integrated anim in trunk, fixing the 999-layer limit at the same time  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1841 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2011-10-19 23:35:56 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Adrien Destugues 
							
						 
					 
					
						
						
						
						
							
						
						
							a8f03cfb20 
							
						 
					 
					
						
						
							
							fix issue  #435  : resizing not precise enough on small pictures/brushes.  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1824 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2011-09-24 13:15:25 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Adrien Destugues 
							
						 
					 
					
						
						
						
						
							
						
						
							706049a2d9 
							
						 
					 
					
						
						
							
							Merge all changes from trunk in CPCMode5 branch.  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/branches/cpcmode5@1809 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2011-06-19 18:30:53 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Adrien Destugues 
							
						 
					 
					
						
						
						
						
							
						
						
							a28b5f6172 
							
						 
					 
					
						
						
							
							* Get the available memory for Haiku/BeOS  
						
						 
						
						... 
						
						
						
						* Refactor the code a bit so the warning for missing code will be there for all the people that don't provide code.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1805 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2011-06-18 15:49:44 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								nokturnal 
							
						 
					 
					
						
						
						
						
							
						
						
							7184fb857f 
							
						 
					 
					
						
						
							
							bugfix in Add_element_to_list(), there were changes in function interface, but they were not applied in function call, so this resulted in program hang when calling fileselector.  
						
						 
						
						... 
						
						
						
						Bugfix there was no Atari_Memory_free() declaration when __MINT_ define was declared.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1799 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2011-06-15 19:29:11 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Adrien Destugues 
							
						 
					 
					
						
						
						
						
							
						
						
							eba26aaa96 
							
						 
					 
					
						
						
							
							Merge trunk to the cpcmode5 branch. This gets us a more recent grafx2 with the cpcmode5 drawing. Now to make this mode optional so users can still work in regular mode :)  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/branches/cpcmode5@1719 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2011-02-13 21:49:31 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Adrien Destugues 
							
						 
					 
					
						
						
						
						
							
						
						
							4e60f5ad74 
							
						 
					 
					
						
						
							
							Import the WIP CPC-Mode5 code from the sourcearchive  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/branches/cpcmode5@1718 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2011-02-13 21:20:45 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yves Rizoud 
							
						 
					 
					
						
						
						
						
							
						
						
							d0aaabf6b2 
							
						 
					 
					
						
						
							
							Merge of r1709 into trunk: Atari Falcon port  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1710 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2011-02-06 19:30:55 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yves Rizoud 
							
						 
					 
					
						
						
						
						
							
						
						
							5d2dd927e4 
							
						 
					 
					
						
						
							
							Much work on color brushes (issue 362). You can rotate, resize, flip etc. without losing original palette.  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1701 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2011-01-30 00:03:38 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yves Rizoud 
							
						 
					 
					
						
						
						
						
							
						
						
							e01b310317 
							
						 
					 
					
						
						
							
							Some work on brush remapping  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1700 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2011-01-29 21:20:54 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yves Rizoud 
							
						 
					 
					
						
						
						
						
							
						
						
							520da7d168 
							
						 
					 
					
						
						
							
							Reverted the change of input system (mostly, still needs more testing) Changed color cycling so it no longer needs a separate thread.  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1581 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2010-08-19 00:33:06 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yves Rizoud 
							
						 
					 
					
						
						
						
						
							
						
						
							951ec2d48a 
							
						 
					 
					
						
						
							
							Still work on SDL events. Airbrush seems to work. Need to do repeatable buttons.  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1565 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2010-08-08 19:59:17 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Adrien Destugues 
							
						 
					 
					
						
						
						
						
							
						
						
							5ee0b4943f 
							
						 
					 
					
						
						
							
							* Use SDL_WaitEvent instead of SDL_PollEvent.  
						
						 
						
						... 
						
						
						
						* To avoid the program getting 'locked' when there is no user input (sliders, colorspray), we use a timer that queues events to make grafX2 act (and refresh the screen)
TODO :
 * To reduce cpu usage when idle even more, start the timer only when it's needed (colorspray is drawing, or a scrollbar is scrolling)
 * For now everyone uses the same timer, so the same delay. This means there is no fast-scroll and slow-scroll for sliders. Starting the timer with a different speed in each case would solve that
 * The event handling for sliders will currently react to any mouse event. Thismeans the slider will move faster if you slightly move the mouse while keeping in the button. Not what wewant, so weshoud all a timer_expired global and the slider should wait for that (and reset it when acknowledged).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1556 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2010-08-06 15:40:01 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yves Rizoud 
							
						 
					 
					
						
						
						
						
							
						
						
							95665a99df 
							
						 
					 
					
						
						
							
							New: Alpha drawing mode, in 'Translucency'. Drawing AA Text automatically activates it. Fixed a problem in non-AA text that made it pick wrong colors if the current skin wasn't using white and black.  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1512 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2010-06-17 18:06:09 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Adrien Destugues 
							
						 
					 
					
						
						
						
						
							
						
						
							9644f7fb4a 
							
						 
					 
					
						
						
							
							* Include NetBSD patch from Jeff. Thanks !  
						
						 
						
						... 
						
						
						
						* Attempt to workaround the lua pkg-config problems. I'd like to know if it makes everyone happy ?
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1470 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2010-04-28 18:53:10 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yves Rizoud 
							
						 
					 
					
						
						
						
						
							
						
						
							3ca5322379 
							
						 
					 
					
						
						
							
							Reorganized source code and directory tree.  
						
						 
						
						... 
						
						
						
						git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1375 416bcca6-2ee7-4201-b75f-2eb2f807beb1 
						
						
					 
					
						2010-03-05 02:53:19 +00:00