Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
retro8
Commits
343da446
Commit
343da446
authored
Feb 28, 2022
by
phcoder
Browse files
Fix wrong range check
parent
321f9bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vm/gfx.h
View file @
343da446
...
...
@@ -209,7 +209,7 @@ namespace retro8
public:
Font
()
{
}
inline
const
sequential_sprite_t
*
glyph
(
char
c
)
const
{
return
c
<
128
?
&
glyphs
[
c
]
:
nullptr
;
}
inline
const
sequential_sprite_t
*
glyph
(
char
c
)
const
{
return
(
unsigned
)
c
<
128
?
&
glyphs
[
(
unsigned
)
c
]
:
nullptr
;
}
inline
const
sequential_sprite_t
*
specialGlyph
(
size_t
i
)
const
{
return
&
glyphs
[
128
+
i
];
}
void
load
();
...
...
@@ -221,4 +221,4 @@ namespace retro8
};
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment