[VITA] Hijacking wrong positioning for UI elements.

This commit is contained in:
Rinnegatamante 2019-11-12 19:06:18 +01:00
parent 66bdf711f4
commit bed9847b48
3 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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);