From 3f59ba766256aceebb9fd2e89749d80691f52c3b Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 30 Jun 2009 07:02:52 +0000 Subject: Should be static, attempt to fix odd crash. svn path=/trunk/netsurf/; revision=8176 --- amiga/gui.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'amiga') diff --git a/amiga/gui.c b/amiga/gui.c index e52fd721a..760931dd3 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -122,9 +122,9 @@ extern colour css_scrollbar_fg_colour; extern colour css_scrollbar_bg_colour; extern colour css_scrollbar_arrow_colour; -Object *mouseptrobj[AMI_LASTPOINTER+1]; -struct BitMap *mouseptrbm[AMI_LASTPOINTER+1]; -int mouseptrcurrent=0; +static Object *mouseptrobj[AMI_LASTPOINTER+1]; +static struct BitMap *mouseptrbm[AMI_LASTPOINTER+1]; +static int mouseptrcurrent=0; char *ptrs[AMI_LASTPOINTER+1] = { "ptr_default", @@ -2622,6 +2622,7 @@ void ami_update_pointer(struct Window *win, gui_pointer_shape shape) default: if(mouseptrobj[shape]) { +DebugPrintF("%ld %lx %lx\n",shape,mouseptrobj[shape],win); SetWindowPointer(win,WA_Pointer,mouseptrobj[shape],TAG_DONE); } else @@ -2684,7 +2685,7 @@ void ami_init_mouse_pointers(void) if(option_truecolour_mouse_pointers) { - ami_get_theme_filename(ptrfname,ptrs32[i]); + ami_get_theme_filename(&ptrfname,ptrs32[i]); if(dobj = GetIconTags(ptrfname,ICONGETA_UseFriendBitMap,TRUE,TAG_DONE)) { if(IconControl(dobj, ICONCTRLA_GetImageDataFormat, &format, TAG_DONE)) @@ -2717,7 +2718,7 @@ void ami_init_mouse_pointers(void) static uint8 dummyPlane[64 * 64 / 8]; static struct BitMap dummyBitMap = { 64 / 8, 64, 0, 2, 0, { dummyPlane, dummyPlane, 0, 0, 0, 0, 0, 0 }, }; - mouseptrobj[i] = NewObject(NULL, POINTERCLASS, + mouseptrobj[i] = NewObject(NULL, "pointerclass", POINTERA_BitMap, &dummyBitMap, POINTERA_XOffset, -mousexpt, POINTERA_YOffset, -mouseypt, -- cgit v1.2.3