mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Qt: use C locale for numbers, otherwise slang shaders can break
This commit is contained in:
parent
fa110c5bb2
commit
38f3d06d08
@ -25,6 +25,9 @@ extern "C" {
|
||||
#include "../../../frontend/frontend.h"
|
||||
#include "../../../tasks/tasks_internal.h"
|
||||
#include <retro_timers.h>
|
||||
#ifdef Q_OS_UNIX
|
||||
#include <locale.h>
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "../ui_qt.h"
|
||||
@ -127,6 +130,9 @@ static void* ui_application_qt_initialize(void)
|
||||
ui_application.app->setApplicationVersion(PACKAGE_VERSION);
|
||||
ui_application.app->connect(ui_application.app, SIGNAL(lastWindowClosed()), appHandler, SLOT(onLastWindowClosed()));
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
#endif
|
||||
{
|
||||
/* Can't declare the pixmap at the top, because: "QPixmap: Must construct a QGuiApplication before a QPixmap" */
|
||||
QImage iconImage(16, 16, QImage::Format_ARGB32);
|
||||
|
Loading…
x
Reference in New Issue
Block a user