aboutsummaryrefslogtreecommitdiff
path: root/shell/menu
diff options
context:
space:
mode:
authorgameblabla2019-10-11 13:38:25 +0200
committergameblabla2019-10-11 13:38:25 +0200
commitb029a0b25f2f0cf9775f6f720756760e1f6c6438 (patch)
treef121917aa23c48789356068faac1721278b050b8 /shell/menu
parentcc878848a45db22abe284649c7e19f896a0abeb9 (diff)
downloadsnesemu-b029a0b25f2f0cf9775f6f720756760e1f6c6438.tar.gz
snesemu-b029a0b25f2f0cf9775f6f720756760e1f6c6438.tar.bz2
snesemu-b029a0b25f2f0cf9775f6f720756760e1f6c6438.zip
Fix text issues in Menu for Retrostone port and input code.
Diffstat (limited to 'shell/menu')
-rw-r--r--shell/menu/font_drawing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/menu/font_drawing.c b/shell/menu/font_drawing.c
index c1c97b9..9b964ef 100644
--- a/shell/menu/font_drawing.c
+++ b/shell/menu/font_drawing.c
@@ -11,9 +11,9 @@ extern int32_t screen_width;
static inline void setPixel(uint16_t* restrict buffer, uint32_t x, uint32_t y, uint16_t c)
{
- if (x < HOST_WIDTH_RESOLUTION && y < HOST_HEIGHT_RESOLUTION)
+ if (x < BACKBUFFER_WIDTH_RESOLUTION && y < BACKBUFFER_HEIGHT_RESOLUTION)
{
- *((uint16_t* restrict)buffer + ((x) + (y) * HOST_WIDTH_RESOLUTION)) = c;
+ *((uint16_t* restrict)buffer + ((x) + (y) * BACKBUFFER_WIDTH_RESOLUTION)) = c;
}
}
@@ -91,7 +91,7 @@ static void drawChar(uint16_t* restrict buffer, uint32_t *x, uint32_t *y, uint32
*x = margin;
*y += 8;
}
- else if(*y < (HOST_HEIGHT_RESOLUTION-1))
+ else if(*y < (BACKBUFFER_HEIGHT_RESOLUTION-1))
{
charSprite = ch * 8 + n2DLib_font;
// Draw charSprite as monochrome 8*8 image using given color
@@ -118,7 +118,7 @@ static void drawString(uint16_t* restrict buffer, uint32_t *x, uint32_t *y, uint
uint32_t i;
size_t size_font;
- size_font = strnlen(str, (HOST_WIDTH_RESOLUTION/8)) + 1;
+ size_font = strnlen(str, (BACKBUFFER_WIDTH_RESOLUTION/8)) + 1;
for(i = 0; i < size_font; i++)
drawChar(buffer, x, y, _x, str[i], fc, olc);
}