mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 07:52:31 +00:00
cleaning up
This commit is contained in:
parent
218aeba531
commit
7aa17d03d9
@ -161,7 +161,7 @@ void MainWindow::toggleFullscreen() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::AddUiWidgets() {
|
void MainWindow::AddUiWidgets() {
|
||||||
// Add toolbar widgets
|
// add toolbar widgets
|
||||||
QApplication::setStyle("Fusion");
|
QApplication::setStyle("Fusion");
|
||||||
ui->toolBar->setObjectName("mw_toolbar");
|
ui->toolBar->setObjectName("mw_toolbar");
|
||||||
|
|
||||||
|
@ -255,10 +255,9 @@ static Uint32 SDLCALL PollController(void* userdata, SDL_TimerID timer_id, Uint3
|
|||||||
return controller->Poll();
|
return controller->Poll();
|
||||||
}
|
}
|
||||||
|
|
||||||
WindowSDL::WindowSDL(s32 width, s32 height, Input::GameController* controller,
|
WindowSDL::WindowSDL(s32 width_, s32 height_, Input::GameController* controller_,
|
||||||
std::string_view window_title)
|
std::string_view window_title)
|
||||||
: width(width), height(height), controller(controller), is_open(true), is_shown(true),
|
: width{width_}, height{height_}, controller{controller_} {
|
||||||
is_paused(false) {
|
|
||||||
if (!SDL_SetHint(SDL_HINT_APP_NAME, "shadPS4")) {
|
if (!SDL_SetHint(SDL_HINT_APP_NAME, "shadPS4")) {
|
||||||
UNREACHABLE_MSG("Failed to set SDL window hint: {}", SDL_GetError());
|
UNREACHABLE_MSG("Failed to set SDL window hint: {}", SDL_GetError());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user