Thomas Bernard
266b092f63
brush rotate: use angles from -179° to 180°
2020-01-07 22:49:24 +01:00
Thomas Bernard
e152b75f4a
properly use angles from 0 to 2PI (0 to 360°)
...
fixes https://pulkomandy.tk/projects/GrafX2/ticket/129
2020-01-05 00:12:44 +00:00
Thomas Bernard
5ebb6dc463
fix warning about M_PI and MAX_PATH redefinition
2019-02-20 13:56:01 +01:00
Thomas Bernard
4283fde82a
MOD_CTRL => GFX2_MOD_CTRL, etc.
2019-02-13 15:42:51 +01:00
Thomas Bernard
bf29a6837c
remove references to SDL_GetModState();
...
changed
word Key_modifiers(SDLMod mod);
to
word Get_Key_modifiers(void);
2018-07-02 11:38:51 +02:00
Thomas Bernard
77005eb780
use screen.h instead of sdlscreen.h, etc.
...
Create grafx2-win32 MSVC++ project
create keycode.h
various fixes
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
6731a57999
escape non ascii chars to HEX \xNN in C source (not in comments)
...
add "" where needed.
also fix extra space at end of lines (only in modified files)
2018-06-26 10:49:33 +02:00
Thomas Bernard
bae93cba7a
use atan2() in Rotate_brush_0_5(). Remove warnings in MSVC++
...
acos() was replaced by atan2() in Rotate_brush_1_5() in commit
2d8c061e3220a592dd894ccde4ebbd80c6c16897
it was forgotten in Rotate_brush_0_5() ;)
2018-03-19 16:49:35 +01:00
Thomas Bernard
f9616f570a
remove warnings when compiling with MSVC++2010
2018-03-19 16:49:32 +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
Adrien Destugues
878c926ce4
Fix issue 185 (XOR highlight) :
...
* Use a simple optimization algorithm to compute a good set of XOR color pairs
* Algorothm is not very optimized (complexity is up to n^3). In practize, it stabilizes after 2 to 3 rounds of swapping colors
* Use this color table for all XOR effects
* Setting for grid color is now removed
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2048 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-01-06 12:46:46 +00:00
Yves Rizoud
effde4aee2
Issue 473: Fix mouse droppings in Brush rotate tool when you hold Shift
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2012 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-26 23:13:04 +00:00
Yves Rizoud
6316fc2add
Fix second part of issue 459 : In anim mode, polybrush-grab with the right mouse button didn't clear the cut area.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1944 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-04-09 14:55:44 +00:00
Yves Rizoud
2d8c061e32
Improved brush rotation by adding 3 steps of scale2x. Result is not as good as I hoped, but for large flat surfaces, the edges are indeed much smoother than before.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1789 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-06-04 15:22:13 +00:00
Yves Rizoud
bd13dd93b1
Integrated the changes by PheeL for Caanoo support
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1629 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-09-29 22:21:25 +00:00
Adrien Destugues
715ddad331
iBrush rotation now snap cursor in an useful way (to fixed angles)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1582 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-22 16:02:17 +00:00
Yves Rizoud
acd31e1a3a
Implemented 'Right click colorpick' option (Issue 300)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1491 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-05-29 15:18:12 +00:00
Yves Rizoud
048f197636
Continuation of Issue 210:Bottom pixels not complete visable in some zoom modes. I chose to have a dead zone at bottom of zoomed area only when it's at bottom of image too. The dead zone is created only if the remaining space is <= 50 of a normal zoomed line, So the usable pixels are guaranteed to be > half a normal line, and the dead space is always <= half a line.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1445 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-04-05 17:56:36 +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