diff --git a/gfx/video_common.h b/gfx/video_common.h index 6fe7c7de58..50e9b33296 100644 --- a/gfx/video_common.h +++ b/gfx/video_common.h @@ -22,6 +22,9 @@ #include +typedef float GRfloat; +typedef unsigned int GRuint; + struct gfx_fbo_rect { unsigned img_width; diff --git a/menu/drivers/glui.c b/menu/drivers/glui.c index c326fb2503..76347646bc 100644 --- a/menu/drivers/glui.c +++ b/menu/drivers/glui.c @@ -49,10 +49,10 @@ typedef struct glui_handle { struct { - GLuint id; + GRuint id; char path[PATH_MAX_LENGTH]; } bg; - GLuint white; + GRuint white; } textures; gfx_font_raster_block_t list_block; @@ -90,7 +90,7 @@ static void glui_render_quad(gl_t *gl, int x, int y, int w, int h, { unsigned width, height; struct gfx_coords coords; - GLfloat color[16], tex_coord[8], vertex[8]; + GRfloat color[16], tex_coord[8], vertex[8]; menu_handle_t *menu = menu_driver_get_ptr(); glui_handle_t *glui = (glui_handle_t*)menu->userdata; diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 8415962f76..5c93536bdd 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -48,9 +48,6 @@ #define XMB_DELAY 10 #endif -typedef float GRfloat; -typedef unsigned int GRuint; - typedef struct { float alpha;