Split Display_paintbrush() in two: one function for preview, another function (Draw_paintbrush()) for image modification. Should be functionally identical, but code becomes simpler.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1857 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2011-11-06 19:38:55 +00:00
parent f1f658ded4
commit 1b4b242a06
5 changed files with 407 additions and 396 deletions

View File

@@ -1968,7 +1968,7 @@ void Display_cursor(void)
{
case CURSOR_SHAPE_TARGET :
if (!Paintbrush_hidden)
Display_paintbrush(Paintbrush_X,Paintbrush_Y,Fore_color,1);
Display_paintbrush(Paintbrush_X,Paintbrush_Y,Fore_color);
if (!Cursor_hidden)
{
if (Config.Cursor==1)
@@ -2019,7 +2019,7 @@ void Display_cursor(void)
case CURSOR_SHAPE_COLORPICKER:
if (!Paintbrush_hidden)
Display_paintbrush(Paintbrush_X,Paintbrush_Y,Fore_color,1);
Display_paintbrush(Paintbrush_X,Paintbrush_Y,Fore_color);
if (Config.Cursor==1)
{
// Barres formant la croix principale