Changeset View
Changeset View
Standalone View
Standalone View
source/ps/GameSetup/GameSetup.cpp
Show First 20 Lines • Show All 606 Lines • ▼ Show 20 Lines | static void InitRenderer() | ||||
// viewport has to be updated according to the video mode | // viewport has to be updated according to the video mode | ||||
SViewPort vp; | SViewPort vp; | ||||
vp.m_X = 0; | vp.m_X = 0; | ||||
vp.m_Y = 0; | vp.m_Y = 0; | ||||
vp.m_Width = g_xres; | vp.m_Width = g_xres; | ||||
vp.m_Height = g_yres; | vp.m_Height = g_yres; | ||||
g_Renderer.SetViewport(vp); | g_Renderer.SetViewport(vp); | ||||
ColorActivateFastImpl(); | |||||
ModelRenderer::Init(); | ModelRenderer::Init(); | ||||
} | } | ||||
static void InitSDL() | static void InitSDL() | ||||
{ | { | ||||
#if OS_LINUX | #if OS_LINUX | ||||
// In fullscreen mode when SDL is compiled with DGA support, the mouse | // In fullscreen mode when SDL is compiled with DGA support, the mouse | ||||
// sensitivity often appears to be unusably wrong (typically too low). | // sensitivity often appears to be unusably wrong (typically too low). | ||||
▲ Show 20 Lines • Show All 1,016 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator