This commit is contained in:
David Capello 2008-01-13 21:04:36 +00:00
parent dfae80457b
commit ab61d62f5e
4 changed files with 2 additions and 10 deletions

View File

@ -31,7 +31,6 @@
#include <allegro.h>
#include <allegro/internal/aintern.h>
#include <winalleg.h>
#include <stdarg.h>
#include <stdio.h>

View File

@ -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;

View File

@ -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++;
}
}

View File

@ -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));
}
}