diff options
Diffstat (limited to 'apps/plugins/jackpot.c')
-rw-r--r-- | apps/plugins/jackpot.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/plugins/jackpot.c b/apps/plugins/jackpot.c index f4a2914116..38cd12e993 100644 --- a/apps/plugins/jackpot.c +++ b/apps/plugins/jackpot.c | |||
@@ -173,8 +173,8 @@ void jackpot_display_slot_machine(struct jackpot* game, struct screen* display) | |||
173 | display->putc(0, 0, '['); | 173 | display->putc(0, 0, '['); |
174 | #else | 174 | #else |
175 | const struct picture* picture= &(jackpot_pictures[display->screen_type]); | 175 | const struct picture* picture= &(jackpot_pictures[display->screen_type]); |
176 | int pos_x=(display->width-NB_SLOTS*(picture->width+1))/2; | 176 | int pos_x=(display->getwidth()-NB_SLOTS*(picture->width+1))/2; |
177 | int pos_y=(display->height-(picture->height))/2; | 177 | int pos_y=(display->getheight()-(picture->height))/2; |
178 | #endif /* HAVE_LCD_CHARCELLS */ | 178 | #endif /* HAVE_LCD_CHARCELLS */ |
179 | for(i=0;i<NB_SLOTS;i++) | 179 | for(i=0;i<NB_SLOTS;i++) |
180 | { | 180 | { |
@@ -223,9 +223,10 @@ void jackpot_info_message(struct screen* display, char* message) | |||
223 | int xpos, ypos; | 223 | int xpos, ypos; |
224 | int message_height, message_width; | 224 | int message_height, message_width; |
225 | display->getstringsize(message, &message_width, &message_height); | 225 | display->getstringsize(message, &message_width, &message_height); |
226 | xpos=(display->width-message_width)/2; | 226 | xpos=(display->getwidth()-message_width)/2; |
227 | ypos=display->height-message_height; | 227 | ypos=display->getheight()-message_height; |
228 | rb->screen_clear_area(display, 0, ypos, display->width, message_height); | 228 | rb->screen_clear_area(display, 0, ypos, display->getwidth(), |
229 | message_height); | ||
229 | display->putsxy(xpos,ypos,message); | 230 | display->putsxy(xpos,ypos,message); |
230 | display->update(); | 231 | display->update(); |
231 | #endif /* HAVE_LCD_CHARCELLS */ | 232 | #endif /* HAVE_LCD_CHARCELLS */ |