mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
Use left-align for the wrapped error messages
This commit is contained in:
parent
af53d1378f
commit
2848753083
1 changed files with 2 additions and 2 deletions
|
@ -216,7 +216,7 @@ SYMBOL_EXPORT void FatalError(struct Game* game, bool exit, char* format, ...) {
|
|||
|
||||
|
||||
const int offsetx = al_get_display_width(game->display) / 2;
|
||||
const int offsety = al_get_display_height(game->display) * 0.32;
|
||||
const int offsety = al_get_display_height(game->display) * 0.30;
|
||||
const int fonth = al_get_font_line_height(game->_priv.font_bsod);
|
||||
|
||||
bool done = false;
|
||||
|
@ -252,7 +252,7 @@ SYMBOL_EXPORT void FatalError(struct Game* game, bool exit, char* format, ...) {
|
|||
const char save_char = text[end];
|
||||
text[end] = '\0';
|
||||
|
||||
al_draw_text(game->_priv.font_bsod, al_map_rgb(255, 255, 255), offsetx, (int)(offsety + row++ * fonth * 1.25), ALLEGRO_ALIGN_CENTRE, text + start);
|
||||
al_draw_text(game->_priv.font_bsod, al_map_rgb(255, 255, 255), offsetx - (error_w / lines) / 2, (int)(offsety + row++ * fonth * 1.25), ALLEGRO_ALIGN_LEFT, text + start);
|
||||
text[end] = save_char;
|
||||
}
|
||||
++row;
|
||||
|
|
Loading…
Reference in a new issue