mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-03-05 01:47:04 +00:00
Some C89_BUILD fixes
This commit is contained in:
parent
7da6797112
commit
4c7ae72c62
@ -101,7 +101,7 @@ enum
|
|||||||
ZR_SYSTEM_TAB_SETTINGS
|
ZR_SYSTEM_TAB_SETTINGS
|
||||||
};
|
};
|
||||||
|
|
||||||
enum theme
|
enum zr_theme
|
||||||
{
|
{
|
||||||
THEME_BLACK = 0,
|
THEME_BLACK = 0,
|
||||||
THEME_WHITE,
|
THEME_WHITE,
|
||||||
@ -114,7 +114,7 @@ struct wimp
|
|||||||
{
|
{
|
||||||
void *memory;
|
void *memory;
|
||||||
struct zr_context ctx;
|
struct zr_context ctx;
|
||||||
enum theme theme;
|
enum zr_theme theme;
|
||||||
struct zr_memory_status status;
|
struct zr_memory_status status;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -217,7 +217,7 @@ static void zr_labelf(struct zr_context *ctx,
|
|||||||
|
|
||||||
/* zahnrad code */
|
/* zahnrad code */
|
||||||
|
|
||||||
static void set_style(struct zr_context *ctx, enum theme theme)
|
static void set_style(struct zr_context *ctx, enum zr_theme theme)
|
||||||
{
|
{
|
||||||
switch (theme)
|
switch (theme)
|
||||||
{
|
{
|
||||||
@ -460,7 +460,7 @@ static int wimp_control(struct zr_context *ctx,
|
|||||||
if (zr_layout_push(ctx, ZR_LAYOUT_TAB, "Color", ZR_MINIMIZED))
|
if (zr_layout_push(ctx, ZR_LAYOUT_TAB, "Color", ZR_MINIMIZED))
|
||||||
{
|
{
|
||||||
struct zr_panel tab, combo;
|
struct zr_panel tab, combo;
|
||||||
enum theme old = gui->theme;
|
enum zr_theme old = gui->theme;
|
||||||
static const char *themes[] = {"Black", "White", "Red", "Blue", "Dark", "Grey"};
|
static const char *themes[] = {"Black", "White", "Red", "Blue", "Dark", "Grey"};
|
||||||
|
|
||||||
zr_layout_row_dynamic(ctx, 25, 2);
|
zr_layout_row_dynamic(ctx, 25, 2);
|
||||||
@ -516,6 +516,10 @@ static void wimp_main(struct zr_context *ctx, int width, int height, struct wimp
|
|||||||
ZR_WINDOW_CLOSABLE|ZR_WINDOW_MINIMIZABLE|ZR_WINDOW_MOVABLE|
|
ZR_WINDOW_CLOSABLE|ZR_WINDOW_MINIMIZABLE|ZR_WINDOW_MOVABLE|
|
||||||
ZR_WINDOW_SCALABLE|ZR_WINDOW_BORDER))
|
ZR_WINDOW_SCALABLE|ZR_WINDOW_BORDER))
|
||||||
{
|
{
|
||||||
|
struct zr_panel combo;
|
||||||
|
static const char *themes[] = {"Black", "White", "Red", "Blue", "Dark", "Grey"};
|
||||||
|
enum zr_theme old = gui->theme;
|
||||||
|
|
||||||
zr_layout_row_dynamic(ctx, 30, 2);
|
zr_layout_row_dynamic(ctx, 30, 2);
|
||||||
|
|
||||||
if (zr_button_text(ctx, "Quit", ZR_BUTTON_DEFAULT))
|
if (zr_button_text(ctx, "Quit", ZR_BUTTON_DEFAULT))
|
||||||
@ -542,9 +546,6 @@ static void wimp_main(struct zr_context *ctx, int width, int height, struct wimp
|
|||||||
zr_layout_row_dynamic(ctx, 30, 1);
|
zr_layout_row_dynamic(ctx, 30, 1);
|
||||||
zr_property_int(ctx, "Max Users:", 1, (int*)&(settings->input.max_users), MAX_USERS, 1, 1);
|
zr_property_int(ctx, "Max Users:", 1, (int*)&(settings->input.max_users), MAX_USERS, 1, 1);
|
||||||
|
|
||||||
struct zr_panel combo;
|
|
||||||
static const char *themes[] = {"Black", "White", "Red", "Blue", "Dark", "Grey"};
|
|
||||||
enum theme old = gui->theme;
|
|
||||||
if (zr_combo_begin_text(ctx, &combo, themes[gui->theme], 300))
|
if (zr_combo_begin_text(ctx, &combo, themes[gui->theme], 300))
|
||||||
{
|
{
|
||||||
zr_layout_row_dynamic(ctx, 25, 1);
|
zr_layout_row_dynamic(ctx, 25, 1);
|
||||||
@ -700,6 +701,7 @@ static struct zr_user_font font_bake_and_upload(
|
|||||||
memset(&custom, 0, sizeof(custom));
|
memset(&custom, 0, sizeof(custom));
|
||||||
|
|
||||||
{
|
{
|
||||||
|
struct texture_image ti;
|
||||||
/* bake and upload font texture */
|
/* bake and upload font texture */
|
||||||
struct zr_font_config config;
|
struct zr_font_config config;
|
||||||
void *img, *tmp;
|
void *img, *tmp;
|
||||||
@ -748,7 +750,6 @@ static struct zr_user_font font_bake_and_upload(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* upload baked font image */
|
/* upload baked font image */
|
||||||
struct texture_image ti;
|
|
||||||
ti.pixels = (uint32_t*)img;
|
ti.pixels = (uint32_t*)img;
|
||||||
ti.width = (GLsizei)img_width;
|
ti.width = (GLsizei)img_width;
|
||||||
ti.height = (GLsizei)img_height;
|
ti.height = (GLsizei)img_height;
|
||||||
|
@ -48,9 +48,6 @@ struct menu_animation
|
|||||||
size_t first_dead;
|
size_t first_dead;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef float (*easing_cb) (float, float, float, float);
|
|
||||||
typedef void (*tween_cb) (void);
|
|
||||||
|
|
||||||
typedef struct menu_animation menu_animation_t;
|
typedef struct menu_animation menu_animation_t;
|
||||||
|
|
||||||
/* from https://github.com/kikito/tween.lua/blob/master/tween.lua */
|
/* from https://github.com/kikito/tween.lua/blob/master/tween.lua */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user