Skip to content

Commit

Permalink
Use a stronger X font definition for X11_MessageBox on UTF-8
Browse files Browse the repository at this point in the history
X11 seemed to be confused by the broad definition, so WEIGHT_NAME,
SLANT and SETWIDTH_NAME were defined, thus fixing the font lookup
on some systems (tested on Mageia 6 with X11 1.19.1).

Fixes bug 3571.
  • Loading branch information
akien-mga committed Jan 28, 2017
1 parent 13433c4 commit c3eea70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11messagebox.c
Expand Up @@ -50,7 +50,7 @@
#define MIN_DIALOG_HEIGHT 100 /* Minimum dialog height */

static const char g_MessageBoxFontLatin1[] = "-*-*-medium-r-normal--0-120-*-*-p-0-iso8859-1";
static const char g_MessageBoxFont[] = "-*-*-*-*-*-*-*-120-*-*-*-*-*-*";
static const char g_MessageBoxFont[] = "-*-*-medium-r-normal--*-120-*-*-*-*-*-*";

static const SDL_MessageBoxColor g_default_colors[ SDL_MESSAGEBOX_COLOR_MAX ] = {
{ 56, 54, 53 }, /* SDL_MESSAGEBOX_COLOR_BACKGROUND, */
Expand Down

0 comments on commit c3eea70

Please sign in to comment.