Skip to content

Commit aed5f01

Browse files
committed
Temporary fix for dedicated server window resolution
Font quality for dedicated server is TrueType now
1 parent 6c621a1 commit aed5f01

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/xrEngine/Device_Initialize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void CRenderDevice::Initialize()
5252
#endif
5353
| SDL_WINDOW_OPENGL;
5454

55-
m_sdlWnd = SDL_CreateWindow("S.T.A.L.K.E.R.: Call of Pripyat", 0, 0, 256, 192, flags);
55+
m_sdlWnd = SDL_CreateWindow("S.T.A.L.K.E.R.: Call of Pripyat", 0, 0, 640, 480, flags);
5656

5757
R_ASSERT3(m_sdlWnd, "Unable to create SDL window", SDL_GetError());
5858
SDL_SetWindowHitTest(m_sdlWnd, WindowHitTest, nullptr);

src/xrEngine/Device_create.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,14 @@ void CRenderDevice::UpdateWindowRects()
141141

142142
void CRenderDevice::SelectResolution(const bool windowed)
143143
{
144-
if (windowed)
144+
// Dedicated server hardcoded resolution
145+
// XXX: to be removed
146+
if (GEnv.isDedicatedServer)
147+
{
148+
dwWidth = psCurrentVidMode[0] = 640;
149+
dwHeight = psCurrentVidMode[1] = 480;
150+
}
151+
else if (windowed)
145152
{
146153
dwWidth = psCurrentVidMode[0];
147154
dwHeight = psCurrentVidMode[1];

src/xrEngine/Text_Console.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ void CTextConsole::CreateLogWnd()
105105
lf.lfUnderline = 0;
106106
lf.lfStrikeOut = 0;
107107
lf.lfCharSet = DEFAULT_CHARSET;
108-
lf.lfOutPrecision = OUT_STRING_PRECIS;
108+
lf.lfOutPrecision = OUT_TT_PRECIS;
109109
lf.lfClipPrecision = CLIP_STROKE_PRECIS;
110-
lf.lfQuality = DRAFT_QUALITY;
110+
lf.lfQuality = CLEARTYPE_NATURAL_QUALITY;
111111
lf.lfPitchAndFamily = VARIABLE_PITCH | FF_SWISS;
112112
xr_sprintf(lf.lfFaceName, sizeof(lf.lfFaceName), "");
113113

0 commit comments

Comments
 (0)