mirror of https://github.com/encounter/SDL.git
wayland: Pass --no-wrap to Zenity.
There seems to be a bug where it can wrap the text based on the minimum possible window size, which can be worked around with --no-wrap. This technically uncaps the width entirely, but this isn't wildly different from what other backends do.
This commit is contained in:
parent
54719a9d3d
commit
07ba13b7a9
|
@ -32,7 +32,7 @@ Wayland_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
||||||
#define ZENITY_CONST(name, str) \
|
#define ZENITY_CONST(name, str) \
|
||||||
const char *name = str; \
|
const char *name = str; \
|
||||||
const size_t name##_len = SDL_strlen(name);
|
const size_t name##_len = SDL_strlen(name);
|
||||||
ZENITY_CONST(zenity, "zenity --question --switch --icon-name=dialog-")
|
ZENITY_CONST(zenity, "zenity --question --switch --no-wrap --icon-name=dialog-")
|
||||||
ZENITY_CONST(title, "--title=")
|
ZENITY_CONST(title, "--title=")
|
||||||
ZENITY_CONST(message, "--text=")
|
ZENITY_CONST(message, "--text=")
|
||||||
ZENITY_CONST(extrabutton, "--extra-button=")
|
ZENITY_CONST(extrabutton, "--extra-button=")
|
||||||
|
|
Loading…
Reference in New Issue