From 3189f07863c816953e2830740f4154cc81db9c8f Mon Sep 17 00:00:00 2001 From: Martin Fuhrer Date: Sat, 14 Oct 2006 03:55:34 +0000 Subject: [PATCH] Mac OS X updates. --- src/fonts.c | 5 +++++ src/tuxpaint.c | 18 ++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/fonts.c b/src/fonts.c index 6ca8dc8fd..d1de65548 100644 --- a/src/fonts.c +++ b/src/fonts.c @@ -26,6 +26,11 @@ #include "win32_print.h" #endif +#ifdef __APPLE__ +#include "wrapperdata.h" +extern WrapperData macosx; +#endif + #ifdef FORKED_FONTS #include diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 5901c57eb..08374c5e3 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -280,8 +280,6 @@ typedef struct safer_dirent #endif #ifdef __APPLE__ #include "macosx_print.h" -#include "wrapperdata.h" -extern WrapperData macosx; #endif #else @@ -3336,10 +3334,10 @@ static void mainloop(void) rect_xor(old_x - w / 2, old_y - h / 2, old_x + w / 2, old_y + h / 2); - update_screen(old_x - w / 2 + r_canvas.x - 1, - old_y - h / 2 + r_canvas.y - 1, - old_x + w / 2 + r_canvas.x + 1, - old_y + h / 2 + r_canvas.y + 1); + update_screen(old_x - w / 2 + r_canvas.x - 10, + old_y - h / 2 + r_canvas.y - 10, + old_x + w / 2 + r_canvas.x + 10, + old_y + h / 2 + r_canvas.y + 10); } } @@ -3360,10 +3358,10 @@ static void mainloop(void) rect_xor(new_x - w / 2, new_y - h / 2, new_x + w / 2, new_y + h / 2); - update_screen(new_x - w / 2 + r_canvas.x - 1, - new_y - h / 2 + r_canvas.y - 1, - new_x + w / 2 + r_canvas.x + 1, - new_y + h / 2 + r_canvas.y + 1); + update_screen(new_x - w / 2 + r_canvas.x - 10, + new_y - h / 2 + r_canvas.y - 10, + new_x + w / 2 + r_canvas.x + 10, + new_y + h / 2 + r_canvas.y + 10); } } }