Skip to content

Commit

Permalink
xrRenderDX10: fix r3 and r4 screen resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg authored and Xottab-DUTY committed Jul 24, 2018
1 parent 7b46c3d commit 1390342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Layers/xrRenderDX10/dx10HW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ void CHW::CreateDevice(SDL_Window* m_sdlWnd, bool move_window)
{
case SDL_SYSWM_WINDOWS:
sd.OutputWindow = info.info.win.window;
SDL_SetWindowSize(m_sdlWnd, sd.BufferDesc.Width, sd.BufferDesc.Height); //workaround for r3 and r4
break;
default: break;
}
Expand Down
5 changes: 1 addition & 4 deletions src/xrEngine/Device_Initialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,11 @@ void CRenderDevice::Initialize()

if (!m_sdlWnd)
{
Uint32 flags = SDL_WINDOW_BORDERLESS;
Uint32 flags = SDL_WINDOW_BORDERLESS | SDL_WINDOW_OPENGL;
#if SDL_VERSION_ATLEAST(2, 0, 5)
flags |= SDL_WINDOW_ALWAYS_ON_TOP;
#endif

if (strstr(Core.Params, "-gl"))
flags |= SDL_WINDOW_OPENGL;

m_sdlWnd = SDL_CreateWindow("S.T.A.L.K.E.R.: Call of Pripyat", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, flags);

R_ASSERT3(m_sdlWnd, "Unable to create SDL window", SDL_GetError());
Expand Down

0 comments on commit 1390342

Please sign in to comment.