mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-21 00:05:30 +00:00
[VITA] Hijacking wrong positioning for UI elements.
This commit is contained in:
parent
66bdf711f4
commit
bed9847b48
@ -121,7 +121,7 @@ static void *vita_init(video_frame_info_t *video_info, void *video_driver)
|
||||
{
|
||||
(void)video_driver;
|
||||
|
||||
return (void*)"null";
|
||||
return (void*)"vita";
|
||||
}
|
||||
|
||||
static uint32_t vita_get_flags(void *data)
|
||||
|
@ -274,6 +274,7 @@ static void gl1_raster_font_draw_vertices(gl1_raster_t *font,
|
||||
int i;
|
||||
for (i = 0; i < coords->vertices; i++) {
|
||||
memcpy(&vertices3[i*3], &coords->vertex[i*2], sizeof(float) * 2);
|
||||
vertices3[i*3] -= 0.5f;
|
||||
vertices3[i*3+2] = 0.0f;
|
||||
}
|
||||
glVertexPointer(3, GL_FLOAT, 0, vertices3);
|
||||
|
@ -144,6 +144,7 @@ static void menu_display_gl1_draw(menu_display_ctx_draw_t *draw,
|
||||
int i;
|
||||
for (i = 0; i < draw->coords->vertices; i++) {
|
||||
memcpy(&vertices3[i*3], &draw->coords->vertex[i*2], sizeof(float) * 2);
|
||||
vertices3[i*3] -= 0.5f;
|
||||
vertices3[i*3+2] = 0.0f;
|
||||
}
|
||||
glVertexPointer(3, GL_FLOAT, 0, vertices3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user