From a4b1915b504ae98b186535e7ee1e857fc72d7049 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 26 Oct 2015 05:33:47 +0100 Subject: [PATCH] zarch_zui_snow is not dependent on zui struct now --- menu/drivers/zarch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/menu/drivers/zarch.c b/menu/drivers/zarch.c index d96758502e..ba398ec38f 100644 --- a/menu/drivers/zarch.c +++ b/menu/drivers/zarch.c @@ -373,7 +373,7 @@ static float zarch_zui_scalef(float val, float oldmin, float oldmax, float newmi #define NPARTICLES 100 -static void zarch_zui_snow(zui_t *zui, int width, int height) +static void zarch_zui_snow(gfx_coord_array_t *ca, int width, int height) { static part_t particles[NPARTICLES]; static bool initialized = false; @@ -438,7 +438,7 @@ static void zarch_zui_snow(zui_t *zui, int width, int height) colors[j] = alpha; } - zarch_zui_push_quad(zui->width, zui->height, colors, &zui->ca, p->x-2, p->y-2, p->x+2, p->y+2); + zarch_zui_push_quad(width, height, colors, ca, p->x-2, p->y-2, p->x+2, p->y+2); j++; } @@ -898,7 +898,7 @@ static void zarch_frame(void) menu_display_font_bind_block(zui->menu, font_driver, &zui->tmp_block); zarch_zui_push_quad(zui->width, zui->height, ZUI_BG_SCREEN, &zui->ca, 0, 0, zui->width, zui->height); - zarch_zui_snow(zui, zui->width, zui->height); + zarch_zui_snow(&zui->ca, zui->width, zui->height); switch (layout) {