mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +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 "../../../frontend/frontend.h"
|
||||||
#include "../../../tasks/tasks_internal.h"
|
#include "../../../tasks/tasks_internal.h"
|
||||||
#include <retro_timers.h>
|
#include <retro_timers.h>
|
||||||
|
#ifdef Q_OS_UNIX
|
||||||
|
#include <locale.h>
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "../ui_qt.h"
|
#include "../ui_qt.h"
|
||||||
@ -127,6 +130,9 @@ static void* ui_application_qt_initialize(void)
|
|||||||
ui_application.app->setApplicationVersion(PACKAGE_VERSION);
|
ui_application.app->setApplicationVersion(PACKAGE_VERSION);
|
||||||
ui_application.app->connect(ui_application.app, SIGNAL(lastWindowClosed()), appHandler, SLOT(onLastWindowClosed()));
|
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" */
|
/* Can't declare the pixmap at the top, because: "QPixmap: Must construct a QGuiApplication before a QPixmap" */
|
||||||
QImage iconImage(16, 16, QImage::Format_ARGB32);
|
QImage iconImage(16, 16, QImage::Format_ARGB32);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user