mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-20 01:48:58 +02:00
[meta] clang-format literally all of the Qt code (#3706)
I'm tired of dealing with this tbh Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3706 Reviewed-by: Lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
769edbfea3
commit
8678cb06eb
107 changed files with 1457 additions and 1737 deletions
|
|
@ -5,8 +5,8 @@
|
|||
#include "startup_checks.h"
|
||||
|
||||
#if YUZU_ROOM
|
||||
#include "dedicated_room/yuzu_room.h"
|
||||
#include <cstring>
|
||||
#include "dedicated_room/yuzu_room.h"
|
||||
#endif
|
||||
|
||||
#include <common/detached_tasks.h>
|
||||
|
|
@ -62,9 +62,8 @@ static Qt::HighDpiScaleFactorRoundingPolicy GetHighDpiRoundingPolicy() {
|
|||
|
||||
// Get the lower of the 2 ratios and truncate, this is the maximum integer scale.
|
||||
const qreal max_ratio = std::trunc(std::min(width_ratio, height_ratio));
|
||||
return max_ratio > real_ratio
|
||||
? Qt::HighDpiScaleFactorRoundingPolicy::Round
|
||||
: Qt::HighDpiScaleFactorRoundingPolicy::Floor;
|
||||
return max_ratio > real_ratio ? Qt::HighDpiScaleFactorRoundingPolicy::Round
|
||||
: Qt::HighDpiScaleFactorRoundingPolicy::Floor;
|
||||
#else
|
||||
// Other OSes should be better than Windows at fractional scaling.
|
||||
return Qt::HighDpiScaleFactorRoundingPolicy::PassThrough;
|
||||
|
|
@ -174,7 +173,7 @@ int main(int argc, char* argv[]) {
|
|||
main_window.show();
|
||||
|
||||
app.connect(&app, &QGuiApplication::applicationStateChanged, &main_window,
|
||||
&MainWindow::OnAppFocusStateChanged);
|
||||
&MainWindow::OnAppFocusStateChanged);
|
||||
|
||||
int result = app.exec();
|
||||
detached_tasks.WaitForAllTasks();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue