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
This commit is contained in:
@@ -49,7 +49,17 @@ Uint32 Airbrush_next_time;
|
||||
|
||||
void Start_operation_stack(word new_operation)
|
||||
{
|
||||
// This part handles things that must be done when exiting an operation.
|
||||
Brush_rotation_center_is_defined=0;
|
||||
switch(Current_operation)
|
||||
{
|
||||
case OPERATION_ROTATE_BRUSH:
|
||||
End_brush_rotation();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// On mémorise l'opération précédente si on démarre une interruption
|
||||
switch(new_operation)
|
||||
@@ -61,6 +71,7 @@ void Start_operation_stack(word new_operation)
|
||||
case OPERATION_POLYBRUSH:
|
||||
case OPERATION_STRETCH_BRUSH:
|
||||
case OPERATION_ROTATE_BRUSH:
|
||||
Begin_brush_rotation();
|
||||
Operation_before_interrupt=Current_operation;
|
||||
// On passe à l'operation demandée
|
||||
Current_operation=new_operation;
|
||||
|
||||
Reference in New Issue
Block a user