From 3fc7f0edb1dc1c74b52eb171cd751bd4acc1a261 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 26 Jul 2019 20:21:11 +1000 Subject: [PATCH] log DPI to console instead --- src/Graphics.c | 2 -- src/Window.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Graphics.c b/src/Graphics.c index 1ed390257..2652ce8d3 100644 --- a/src/Graphics.c +++ b/src/Graphics.c @@ -794,7 +794,6 @@ void Gfx_DrawIndexedVb_TrisT2fC4b(int verticesCount, int startVertex) { static D3DTRANSFORMSTATETYPE matrix_modes[3] = { D3DTS_PROJECTION, D3DTS_VIEW, D3DTS_TEXTURE0 }; void Gfx_LoadMatrix(MatrixType type, struct Matrix* matrix) { - ReturnCode res; if (type == MATRIX_TEXTURE) { matrix->Row2.X = matrix->Row3.X; /* NOTE: this hack fixes the texture movements. */ IDirect3DDevice9_SetTextureStageState(device, 0, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_COUNT2); @@ -805,7 +804,6 @@ void Gfx_LoadMatrix(MatrixType type, struct Matrix* matrix) { } void Gfx_LoadIdentityMatrix(MatrixType type) { - ReturnCode res; if (type == MATRIX_TEXTURE) { IDirect3DDevice9_SetTextureStageState(device, 0, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_DISABLE); } diff --git a/src/Window.c b/src/Window.c index 9a355aa01..54315d1e4 100644 --- a/src/Window.c +++ b/src/Window.c @@ -355,6 +355,8 @@ void Window_Init(void) { Display_BitsPerPixel = GetDeviceCaps(hdc, BITSPIXEL); Display_DpiX = GetDeviceCaps(hdc, LOGPIXELSX); Display_DpiY = GetDeviceCaps(hdc, LOGPIXELSY); + + Platform_Log2("DPI: %i, %i", &Display_DpiX, &Display_DpiY); ReleaseDC(NULL, hdc); }