diff options
Diffstat (limited to 'frontends/amiga/theme.c')
-rw-r--r-- | frontends/amiga/theme.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/frontends/amiga/theme.c b/frontends/amiga/theme.c index 496fc5470..63982c879 100644 --- a/frontends/amiga/theme.c +++ b/frontends/amiga/theme.c @@ -47,13 +47,15 @@ #include "amiga/gui.h" #include "amiga/drag.h" #include "amiga/bitmap.h" +#include "amiga/plotters.h" #include "amiga/schedule.h" #include "amiga/theme.h" #include "amiga/misc.h" static struct BitMap *throbber = NULL; static struct bitmap *throbber_nsbm = NULL; -static int throbber_frames, throbber_update_interval; +static int throbber_frames = 1; +static int throbber_update_interval; static Object *mouseptrobj[AMI_LASTPOINTER+1]; static struct BitMap *mouseptrbm[AMI_LASTPOINTER+1]; @@ -175,11 +177,13 @@ void ami_theme_throbber_setup(void) ami_get_theme_filename(throbberfile,"theme_throbber",false); throbber_frames=atoi(messages_get("theme_throbber_frames")); + if(throbber_frames == 0) throbber_frames = 1; throbber_update_interval = atoi(messages_get("theme_throbber_delay")); if(throbber_update_interval == 0) throbber_update_interval = 250; bm = ami_bitmap_from_datatype(throbberfile); - throbber = ami_bitmap_get_native(bm, bitmap_get_width(bm), bitmap_get_height(bm), NULL); + throbber = ami_bitmap_get_native(bm, bitmap_get_width(bm), bitmap_get_height(bm), + ami_plot_screen_is_palettemapped(), NULL); throbber_nsbm = bm; } |