mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Fix brace style of Graphics::font_idx()
This really should be next-line brace, as is (most of) the rest of the codebase.
This commit is contained in:
@@ -243,18 +243,24 @@ void Graphics::destroy_buffers()
|
|||||||
#undef FREE_SURFACE
|
#undef FREE_SURFACE
|
||||||
}
|
}
|
||||||
|
|
||||||
int Graphics::font_idx(uint32_t ch) {
|
int Graphics::font_idx(uint32_t ch)
|
||||||
if (font_positions.size() > 0) {
|
{
|
||||||
|
if (font_positions.size() > 0)
|
||||||
|
{
|
||||||
std::map<int, int>::iterator iter = font_positions.find(ch);
|
std::map<int, int>::iterator iter = font_positions.find(ch);
|
||||||
if (iter == font_positions.end()) {
|
if (iter == font_positions.end())
|
||||||
|
{
|
||||||
iter = font_positions.find('?');
|
iter = font_positions.find('?');
|
||||||
if (iter == font_positions.end()) {
|
if (iter == font_positions.end())
|
||||||
|
{
|
||||||
puts("font.txt missing fallback character!");
|
puts("font.txt missing fallback character!");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return iter->second;
|
return iter->second;
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
return ch;
|
return ch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user