365 Commits

Author SHA1 Message Date
Adrien Destugues
79aca71830 Fixes issue #78 and some more makefile tuning (ziprelease names the archives according to the platform)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@427 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-27 15:10:35 +00:00
Adrien Destugues
a8ae3672f8 Also for Haiku
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@426 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-27 14:43:53 +00:00
Adrien Destugues
c4955dd0f0 TT font listing for beos
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@425 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-27 14:37:47 +00:00
Adrien Destugues
f180b13f29 Makefile tuning for beos
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@424 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-27 14:17:25 +00:00
Adrien Destugues
321187693c Fixes realpath for beos uses. As beos also misses fchdir...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@423 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-27 13:57:53 +00:00
Adrien Destugues
77f745e1f0 Oops, i messed up some little things there :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@422 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-27 11:46:10 +00:00
Adrien Destugues
e2fe9dcd79 Added some pathes for AROS operating system. We need someone to test it out now :)
Also, there is a realpath implementation there wich may be useful for BeOS too


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@421 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-27 11:43:03 +00:00
Yves Rizoud
4c48c74a96 Fixed minor issues of r419 when keyboard-drawing in zoom area: "Escaping" the zoom window, and going up at the top warps to the bottom.
Also, even with mouse,when you draw downwards into the menu, the cursor no longer blinks into the top line of the menu.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@420 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-27 03:12:21 +00:00
Adrien Destugues
a2324e2cb1 Cursor moves faster when using the keyboard shortcuts over the zoomed screen. Feels more natural to me
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@419 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-26 21:46:17 +00:00
Yves Rizoud
df33261b59 Fix issue 57: Missing refresh in the cross points for the 4-point splines.
Also fixed the display of the bottom-right corner of the spline itself.
Grad rectangle: The vector line is now drawn as XOR: dragging it no longer erases the screen.
SFont.c: Only removed TAB characters in source.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@418 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-26 19:38:21 +00:00
Adrien Destugues
c55c27bd85 Fixed the two little issues in button handling.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@417 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-24 15:42:10 +00:00
Adrien Destugues
e7a1152777 Fixes some problems of sreen update in smear mode (issue 66) and possibly some others. The various calls to Mettre_Ecran_A_Jour in Afficher_Pinceau could benefit from some cleanup in order to avoid if(sthing)Mettre_Ecran_A_Jour(A,B,C,D)else Mettre_Ecran_A_Jour(A,B,C,D) with same ABCD...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@416 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-24 13:13:06 +00:00
Franck Charlet
d37b4f44e9 X/Y labels weren't displayed in status when leaving magnify mode.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@415 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-23 21:48:52 +00:00
Franck Charlet
273c1b1bf1 Removed some useless code due to precedent fix.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@414 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-23 20:20:35 +00:00
Franck Charlet
b0e7f6189f Issue 67 should now be entirely fixed (including the coordinates being displayed while hovering the menu).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@413 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-23 20:18:25 +00:00
Franck Charlet
ad465d6073 X & Y labels disappearing (issue 67) should be fixed.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@412 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-23 19:35:49 +00:00
Yves Rizoud
7247b83007 (Linux and Windows) Fix missing refresh that happened when zoom was on and you were drawing in the left part of screen.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@411 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-22 18:44:02 +00:00
Yves Rizoud
c1af3faac2 Fixed 'mouse droppings' when using the Thin cursor. The cursor also didn't look symmetric.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@410 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-21 19:20:26 +00:00
Yves Rizoud
f65820313f Fixed a bug which attempted to refresh below the screen when menu is hidden
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@409 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-21 18:23:41 +00:00
Yves Rizoud
b5168ffdf7 Fixes crash if menu is hidden and mouse cursor touches screen bottom (issue 71)
Fixes an off-by-one error in screen refresh which caused the menu bar to not reappear when you press F10. It was since r392 (except MacOSX).


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@408 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-21 16:28:24 +00:00
Yves Rizoud
d237b058ad Fixes SIGSEGV from r406 when loading an image from command-line. oops.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@407 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-20 20:20:32 +00:00
Yves Rizoud
a81bc2c1a4 Fixes SIGSEGVs and weird coordinates of viewports when resizing the screen (w/ and w/o zoom, with resolution change or window resize)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@406 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-20 19:06:00 +00:00
Yves Rizoud
8862c1994f Fixes a SIGSEGV when using line,polyline,polygon etc. with a starting point below the picture (outside).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@405 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-20 17:50:54 +00:00
Yves Rizoud
28805017a2 Fix issue 56: Window resizing and zoom mode.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@404 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-19 16:49:01 +00:00
Yves Rizoud
4caccac09a Fixed issue 70: Kb shortcuts during brush rotation and stretch.
Fixed compilation warnings of these functions ("... might be uninitialized")


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@403 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-19 00:10:17 +00:00
Franck Charlet
ccfc83dae3 - Updated the xcode project.
- Added my email in the credits just in case.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@402 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-18 18:17:27 +00:00
Yves Rizoud
77206f2baa Some sources converted from Unicode to ANSI, and removed some warnings for mingw (implicit include of libc)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@401 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-18 15:08:23 +00:00
Adrien Destugues
fb6d1100dc Lines will refresh instantly when you press shift, but, strangely, not when you release it.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@400 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-17 20:58:59 +00:00
Adrien Destugues
2825350f17 We missed a flush_update there...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@399 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-17 20:52:39 +00:00
Adrien Destugues
294ccbd2d3 Allow sliders to scroll more than once when the mouse button is pressed
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@398 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-17 20:00:15 +00:00
Yves Rizoud
efd02fbf00 Fix compilation warnings of r394
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@397 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-17 19:12:58 +00:00
Adrien Destugues
90b3f9b1a1 Finished updating the includes for graph.c split. Now we have :
-Graph.c : everything related to drawing.
-Brush.c : everything related to brushes (displaying, erasing, capturing, and effects)
-Windows.c : windows and menu drawing functions

Some functions were also moved to divers.c.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@396 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-16 22:14:08 +00:00
Adrien Destugues
c004c90d90 Splitted graph.c in multiple files. Compiles but there is a lot of warnings about declarations. I'm cleaning it up but i wanted to commit that before starting to get conflicts
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@395 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-16 22:02:22 +00:00
Yves Rizoud
78df30d844 Fix broken characters >127 in the help window.
Fix broken characters >127 in normal fonts.
(Pkm: I unsigned the characters during gcc port, please don't re-sign them :)
Got rid of OEM->ANSI character translation in normal text.
Now displays the nice '...' character for filenames that dont fit windows/menus.
(dev) Added a sample Amstrad CPC picture with wide pixels. Remember to run grafx2 with '/wide'


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@394 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-16 19:26:19 +00:00
Yves Rizoud
22670e7215 Fonts re-ordered/redrawn in ANSI order
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@393 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-16 17:44:57 +00:00
Adrien Destugues
514eee4f79 Fixes the brush roatation missing update. Also switched to cumulative rects method instead of rect-by-rect, as it is faster, and flicker free when working with big brushes. It may makes it harder to diagnose missing refreshes, however.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@392 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-16 16:54:21 +00:00
Adrien Destugues
32f07b66ce Remove useless setting "show system directories".
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@391 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-16 12:41:57 +00:00
Yves Rizoud
71c2aa4ce6 Fix missing refresh in Spray menu.
Fix wrong color selection in Spray menu when clicking between columns.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@390 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-15 23:54:28 +00:00
Yves Rizoud
72738b9e48 Sieve menu displays sieve previews with wide/tall aspect ratio if needed.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@389 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-15 23:02:33 +00:00
Yves Rizoud
b6d18a012b Brush menu displays with wide/tall aspect ratio if needed
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@388 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-15 22:28:32 +00:00
Adrien Destugues
383bb56366 Added the missing text refresh for text in windows.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@387 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-15 22:05:32 +00:00
Yves Rizoud
9510441b7b Missing files from previous commit
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@386 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-15 21:45:13 +00:00
Yves Rizoud
d4dcf44f7c Support for "wide pixel" mode (Each pixel is 2x1). Run the program with "/wide" argument to test.
Now you can draw graphics for Amstrad CPC's "mode 0" :)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@385 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-15 21:00:18 +00:00
Adrien Destugues
d81a4a26f0 Oops ! Much lower cpu use and keyboard is working again.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@384 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-15 19:36:47 +00:00
Adrien Destugues
c72dcd1840 Only displays the coordinates if the mouse moved. Next step is to check the Operations and see wich of them are displaying the coordinates, wich are not, and decide wether we always display them in the main loop (smaller code for operations) or in each atomic action in operation (more code in the atomic actions but allow for displaying anything, like the selected color for the pipette, radius for the circle tool, relative positions for lines and rectangles, and so on. Might be interesting. We may also display the basic corrdinates and let each operation display (or not display) some string in the remaining menubar space.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@383 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-15 16:33:30 +00:00
Adrien Destugues
a5150484e4 Removed useless call to UpdateRect.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@382 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-15 15:53:13 +00:00
Adrien Destugues
87d887e240 One more small speedup. The coordinates were always printed twice in the menubar. Also added a missing refresh when using the pipette and the color replace tools. Now you get a preview of the color under the cursor in the menubar.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@381 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-15 15:17:47 +00:00
Adrien Destugues
6c8bbfbc56 Now idles when there is nothing to do. Much less CPUtime use, but the spray is slowed down. We need to improve the handling of Get_input in Gestion_principale.
Get_input now returns 1 if something happened, and 0 if not. So we can chose what to do depending on that.
We should try not to wait if the operation needs to be asynchronous, but there is no way to know that for now, and it may be quite complex to determine (i think the shade effect can be asynchronous for example, so it'll affect pretty much all operations).

The other solution would be to drop events to react to the more recent ones. It would look smoother but the mouse will do strange things.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@378 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-14 11:17:15 +00:00
Adrien Destugues
363ff934fd Added xman current working mail address to the credits screen
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@377 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-13 21:56:09 +00:00
Yves Rizoud
d2300cc2c1 Support for "tall pixel" mode (Each pixel is 1x2). Run the program with "/tall" argument to test.
The following tools don't take the ratio into account;
Circle,
Grad rectangle,
Brush rotation,
Resizable brushes (diamond, squares, circles...)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@376 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-13 16:20:37 +00:00