diff options
-rw-r--r-- | atari/gemtk/gemtk.h | 1 | ||||
-rw-r--r-- | atari/gemtk/guiwin.c | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/atari/gemtk/gemtk.h b/atari/gemtk/gemtk.h index 2471b34db..3e406b5e3 100644 --- a/atari/gemtk/gemtk.h +++ b/atari/gemtk/gemtk.h @@ -102,6 +102,7 @@ short gemtk_msg_box_show(short type, const char * msg); #define GEMTK_WM_FLAG_RECV_PREPROC_WM 0x02 // get notified even when pre-processed #define GEMTK_WM_FLAG_HAS_VTOOLBAR 0x04 // the attached toolbar is vertical #define GEMTK_WM_FLAG_CUSTOM_TOOLBAR 0x08 // no internal toolbar handling + // (Except considering it's size) #define GEMTK_WM_FLAG_CUSTOM_SCROLLING 0x20 // no internal scroller handling #define GEMTK_WM_FLAG_DEFAULTS \ diff --git a/atari/gemtk/guiwin.c b/atari/gemtk/guiwin.c index 6275184be..8d3da4b1a 100644 --- a/atari/gemtk/guiwin.c +++ b/atari/gemtk/guiwin.c @@ -26,8 +26,8 @@ #include "gemtk.h" -#define DEBUG_PRINT(x) printf x -//#define DEBUG_PRINT(x) +//#define DEBUG_PRINT(x) printf x +#define DEBUG_PRINT(x) struct gemtk_window_s { @@ -102,7 +102,9 @@ static void move_rect(GUIWIN * win, GRECT *rect, int dx, int dy) /* get intersection with screen area */ wind_get_grect(0, WF_CURRXYWH, &g); - rc_intersect(&g, rect); + if(!rc_intersect(&g, rect)){ + return; + } xy[0] = rect->g_x; xy[1] = rect->g_y; xy[2] = xy[0] + rect->g_w-1; |