mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-28 16:20:50 +00:00
This commit is contained in:
parent
dfae80457b
commit
ab61d62f5e
@ -31,7 +31,6 @@
|
||||
|
||||
#include <allegro.h>
|
||||
#include <allegro/internal/aintern.h>
|
||||
#include <winalleg.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -41,10 +41,7 @@ typedef struct Editor
|
||||
int cursor_screen_y;
|
||||
int cursor_editor_x; /* position in the editor (model) */
|
||||
int cursor_editor_y;
|
||||
|
||||
int old_cursor_thick;
|
||||
int old_cursor_screen_x;
|
||||
int old_cursor_screen_y;
|
||||
|
||||
/* for the mouse */
|
||||
unsigned lagged_mouseenter : 1;
|
||||
|
@ -360,7 +360,7 @@ static void cleanpixel(BITMAP *bmp, int x, int y, int color)
|
||||
if (point_inside_region(x, y, clipping_region))
|
||||
putpixel(bmp, x, y, saved_pixel[saved_pixel_n++]);
|
||||
else if (point_inside_region(x, y, old_clipping_region))
|
||||
saved_pixel[saved_pixel_n++];
|
||||
saved_pixel_n++;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -959,8 +959,6 @@ static bool editor_msg_proc(JWidget widget, JMessage msg)
|
||||
case JM_DRAW: {
|
||||
if (editor->old_cursor_thick == 0) {
|
||||
editor->old_cursor_thick = editor->cursor_thick;
|
||||
editor->old_cursor_screen_x = editor->cursor_screen_x;
|
||||
editor->old_cursor_screen_y = editor->cursor_screen_y;
|
||||
}
|
||||
|
||||
if (editor->cursor_thick != 0)
|
||||
@ -1038,9 +1036,7 @@ static bool editor_msg_proc(JWidget widget, JMessage msg)
|
||||
|
||||
if (msg->draw.count == 0
|
||||
&& editor->old_cursor_thick != 0) {
|
||||
editor_draw_cursor(widget,
|
||||
editor->old_cursor_screen_x,
|
||||
editor->old_cursor_screen_y);
|
||||
editor_draw_cursor(widget, jmouse_x(0), jmouse_y(0));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user