New: Picture effects screen, resizes / mirrors / rotates image (Issue 73)
New: Distort brush (Issue 34) New: Pixel scaler "Triple" for 3x3 zoom (Issue 147) New: Pixel scaler "Quadruple" for 4x4 zoom (Issue 151) New: Pixel scaler "Wide2" for 4x2 zoom (Issue 148) New: Pixel scaler "Tall2" for 2x4 zoom (Issue 149) Fix of very old bug: Resizing the image didn't mark the image 'modified since last save' git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@763 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
23
engine.c
23
engine.c
@@ -106,7 +106,7 @@ void Restore_effects(void)
|
||||
char * Menu_tooltip[NB_BUTTONS]=
|
||||
{
|
||||
"Paintbrush choice ",
|
||||
"Adjust picture / Effects",
|
||||
"Adjust / Transform menu ",
|
||||
"Freehand draw. / Toggle ",
|
||||
"Splines / Toggle ",
|
||||
"Lines / Toggle ",
|
||||
@@ -407,6 +407,10 @@ void Unselect_button(int btn_number,byte click)
|
||||
&& (!(Main_magnifier_mode && (b==BUTTON_MAGNIFIER))) )
|
||||
// Alors on désenclenche le bouton
|
||||
Unselect_bouton(b);
|
||||
// Right-clicking on Adjust opens a menu, so in this case we skip
|
||||
// the unselection of all "Tool" buttons.
|
||||
if (btn_number==BUTTON_ADJUST && click==RIGHT_SIDE)
|
||||
break;
|
||||
// Pour chaque bouton:
|
||||
for (b=0; b<NB_BUTTONS; b++)
|
||||
// S'il est de la même famille
|
||||
@@ -698,13 +702,13 @@ void Main_handler(void)
|
||||
break;
|
||||
case SPECIAL_FLIP_X : // Flip X
|
||||
Hide_cursor();
|
||||
Flip_X_lowlevel();
|
||||
Flip_X_lowlevel(Brush, Brush_width, Brush_height);
|
||||
Display_cursor();
|
||||
Key=0;
|
||||
break;
|
||||
case SPECIAL_FLIP_Y : // Flip Y
|
||||
Hide_cursor();
|
||||
Flip_Y_lowlevel();
|
||||
Flip_Y_lowlevel(Brush, Brush_width, Brush_height);
|
||||
Display_cursor();
|
||||
Key=0;
|
||||
break;
|
||||
@@ -716,14 +720,7 @@ void Main_handler(void)
|
||||
break;
|
||||
case SPECIAL_ROTATE_180 : // 180° brush rotation
|
||||
Hide_cursor();
|
||||
if (Brush_height&1)
|
||||
{
|
||||
// Brush de hauteur impaire
|
||||
Flip_X_lowlevel();
|
||||
Flip_Y_lowlevel();
|
||||
}
|
||||
else
|
||||
Rotate_180_deg_lowlevel();
|
||||
Rotate_180_deg_lowlevel(Brush, Brush_width, Brush_height);
|
||||
Brush_offset_X=(Brush_width>>1);
|
||||
Brush_offset_Y=(Brush_height>>1);
|
||||
Display_cursor();
|
||||
@@ -736,7 +733,9 @@ void Main_handler(void)
|
||||
Key=0;
|
||||
break;
|
||||
case SPECIAL_DISTORT : // Distort brush
|
||||
Message_not_implemented(); // !!! TEMPORAIRE !!!
|
||||
Hide_cursor();
|
||||
Start_operation_stack(OPERATION_DISTORT_BRUSH);
|
||||
Display_cursor();
|
||||
Key=0;
|
||||
break;
|
||||
case SPECIAL_ROTATE_ANY_ANGLE : // Rotate brush by any angle
|
||||
|
||||
Reference in New Issue
Block a user