mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-21 00:05:30 +00:00
Merge pull request #12653 from jdgleaver/rs90-osd-fix
(RS-90) Fix offset of OSD text
This commit is contained in:
commit
d8f780848a
@ -124,8 +124,8 @@ static void sdl_rs90_blit_text16(
|
||||
bool **font_lut = vid->osd_font->lut;
|
||||
/* 16 bit - divide pitch by 2 */
|
||||
uint16_t screen_stride = (uint16_t)(vid->screen->pitch >> 1);
|
||||
uint16_t screen_width = vid->frame_width;
|
||||
uint16_t screen_height = vid->frame_height;
|
||||
uint16_t screen_width = vid->screen->w;
|
||||
uint16_t screen_height = vid->screen->h;
|
||||
unsigned x_pos = x + vid->frame_padding_x;
|
||||
unsigned y_pos = (y > (screen_height >> 1)) ?
|
||||
(y - vid->frame_padding_y) : (y + vid->frame_padding_y);
|
||||
|
Loading…
x
Reference in New Issue
Block a user