Introduce a PAINTBRUSH_SHAPE_NONE for the colorpicker.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1443 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
befba16697
commit
eb14b70724
@ -130,6 +130,8 @@ void Display_paintbrush(short x,short y,byte color,byte is_preview)
|
||||
// en train de cliquer
|
||||
switch (Paintbrush_shape)
|
||||
{
|
||||
case PAINTBRUSH_SHAPE_NONE : // No paintbrush. for colorpicker for example
|
||||
break;
|
||||
case PAINTBRUSH_SHAPE_POINT : // !!! TOUJOURS EN PREVIEW !!!
|
||||
if ( (Paintbrush_X>=Limit_left)
|
||||
&& (Paintbrush_X<=Limit_right)
|
||||
|
||||
@ -182,7 +182,7 @@ void Change_paintbrush_shape(byte shape)
|
||||
break;
|
||||
case OPERATION_COLORPICK :
|
||||
Paintbrush_shape_before_colorpicker=shape;
|
||||
Paintbrush_shape=PAINTBRUSH_SHAPE_POINT;
|
||||
Paintbrush_shape=PAINTBRUSH_SHAPE_NONE;
|
||||
break;
|
||||
// Note: Il existe un Paintbrush_shape_before_lasso, mais comme le lasso aura
|
||||
// été automatiquement désactivé avant d'arriver ici, y'a pas de problème.
|
||||
@ -3179,7 +3179,7 @@ void Button_Colorpicker(void)
|
||||
Colorpicker_color=-1;
|
||||
Start_operation_stack(OPERATION_COLORPICK);
|
||||
Paintbrush_shape_before_colorpicker=Paintbrush_shape;
|
||||
Paintbrush_shape=PAINTBRUSH_SHAPE_POINT;
|
||||
Paintbrush_shape=PAINTBRUSH_SHAPE_NONE;
|
||||
if (Operation_before_interrupt!=OPERATION_REPLACE)
|
||||
if ( (Mouse_Y<Menu_Y) && (Menu_is_visible) &&
|
||||
( (!Main_magnifier_mode) || (Mouse_X<Main_separator_position) || (Mouse_X>=Main_X_zoom) ) )
|
||||
|
||||
@ -211,7 +211,8 @@ enum PAINTBRUSH_SHAPES
|
||||
PAINTBRUSH_SHAPE_SIEVE_ROUND,
|
||||
PAINTBRUSH_SHAPE_SIEVE_SQUARE,
|
||||
PAINTBRUSH_SHAPE_MISC, ///< A raw monochrome bitmap, can't be resized. This must be the last of the preset paintbrush types.
|
||||
PAINTBRUSH_SHAPE_POINT, ///< Used to reduce the paintbrush to a single pixel, during operations like colorpicker.
|
||||
PAINTBRUSH_SHAPE_POINT, ///< Used to reduce the paintbrush to a single pixel, during operations like floodfill.
|
||||
PAINTBRUSH_SHAPE_NONE, ///< Used to display no cursor at all (colorpicker)
|
||||
PAINTBRUSH_SHAPE_COLOR_BRUSH, ///< User's brush, in color mode
|
||||
PAINTBRUSH_SHAPE_MONO_BRUSH, ///< User's brush, in mono mode
|
||||
PAINTBRUSH_SHAPE_MAX ///< Upper limit.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user