log DPI to console instead

This commit is contained in:
UnknownShadow200 2019-07-26 20:21:11 +10:00
parent df83310b59
commit 3fc7f0edb1
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}