mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-01 01:01:19 -06:00
20 lines
505 B
C++
20 lines
505 B
C++
#include "window.h"
|
|
#include <config.h>
|
|
#include <kernel/function.h>
|
|
|
|
SDL_Window* Window::s_window = nullptr;
|
|
void* Window::s_windowHandle = nullptr;
|
|
|
|
void Window::Init()
|
|
{
|
|
auto title = Config::Language == ELanguage_Japanese
|
|
? "Sonic World Adventure"
|
|
: "SONIC UNLEASHED";
|
|
|
|
SDL_InitSubSystem(SDL_INIT_VIDEO);
|
|
SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE);
|
|
|
|
s_window = SDL_CreateWindow(title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, SDL_WINDOW_RESIZABLE);
|
|
}
|
|
|