summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/rockbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/rockbox.c')
-rw-r--r--apps/plugins/puzzles/rockbox.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c
index b3a225ae89..1982da8e3e 100644
--- a/apps/plugins/puzzles/rockbox.c
+++ b/apps/plugins/puzzles/rockbox.c
@@ -1310,11 +1310,6 @@ static void rb_status_bar(void *handle, const char *text)
1310 LOGF("game title is %s\n", text); 1310 LOGF("game title is %s\n", text);
1311} 1311}
1312 1312
1313static int get_titleheight(void)
1314{
1315 return rb->font_get(FONT_UI)->height;
1316}
1317
1318static void draw_title(bool clear_first) 1313static void draw_title(bool clear_first)
1319{ 1314{
1320 const char *base; 1315 const char *base;
@@ -1327,7 +1322,7 @@ static void draw_title(bool clear_first)
1327 rb->snprintf(str, sizeof(str), "%s%s", base, zoom_enabled ? (view_mode ? " (viewing)" : " (interaction)") : ""); 1322 rb->snprintf(str, sizeof(str), "%s%s", base, zoom_enabled ? (view_mode ? " (viewing)" : " (interaction)") : "");
1328 1323
1329 /* quick hack */ 1324 /* quick hack */
1330 bool orig_clipped; 1325 bool orig_clipped = false;
1331 if(!zoom_enabled) 1326 if(!zoom_enabled)
1332 { 1327 {
1333 orig_clipped = clipped; 1328 orig_clipped = clipped;
@@ -3421,10 +3416,10 @@ enum plugin_status plugin_start(const void *param)
3421 { 3416 {
3422 /* Solo needs a big stack */ 3417 /* Solo needs a big stack */
3423 int stack_sz = 16 * DEFAULT_STACK_SIZE; 3418 int stack_sz = 16 * DEFAULT_STACK_SIZE;
3424 uintptr_t old = smalloc(stack_sz); 3419 uintptr_t old = (uintptr_t)smalloc(stack_sz);
3425 3420
3426 /* word alignment */ 3421 /* word alignment */
3427 long *stack = ((uintptr_t)old & (uintptr_t)(~0x3)) + 4; 3422 long *stack = (long*)((char*)(((uintptr_t)old & (uintptr_t)(~0x3)) + 4));
3428 stack_sz -= ((char*)stack - (char*)old); 3423 stack_sz -= ((char*)stack - (char*)old);
3429 3424
3430 thread = rb->create_thread(puzzles_main, stack, stack_sz, 0, "puzzles" 3425 thread = rb->create_thread(puzzles_main, stack, stack_sz, 0, "puzzles"