mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 11:06:06 -04:00
log DPI to console instead
This commit is contained in:
parent
df83310b59
commit
3fc7f0edb1
@ -794,7 +794,6 @@ void Gfx_DrawIndexedVb_TrisT2fC4b(int verticesCount, int startVertex) {
|
|||||||
static D3DTRANSFORMSTATETYPE matrix_modes[3] = { D3DTS_PROJECTION, D3DTS_VIEW, D3DTS_TEXTURE0 };
|
static D3DTRANSFORMSTATETYPE matrix_modes[3] = { D3DTS_PROJECTION, D3DTS_VIEW, D3DTS_TEXTURE0 };
|
||||||
|
|
||||||
void Gfx_LoadMatrix(MatrixType type, struct Matrix* matrix) {
|
void Gfx_LoadMatrix(MatrixType type, struct Matrix* matrix) {
|
||||||
ReturnCode res;
|
|
||||||
if (type == MATRIX_TEXTURE) {
|
if (type == MATRIX_TEXTURE) {
|
||||||
matrix->Row2.X = matrix->Row3.X; /* NOTE: this hack fixes the texture movements. */
|
matrix->Row2.X = matrix->Row3.X; /* NOTE: this hack fixes the texture movements. */
|
||||||
IDirect3DDevice9_SetTextureStageState(device, 0, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_COUNT2);
|
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) {
|
void Gfx_LoadIdentityMatrix(MatrixType type) {
|
||||||
ReturnCode res;
|
|
||||||
if (type == MATRIX_TEXTURE) {
|
if (type == MATRIX_TEXTURE) {
|
||||||
IDirect3DDevice9_SetTextureStageState(device, 0, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_DISABLE);
|
IDirect3DDevice9_SetTextureStageState(device, 0, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_DISABLE);
|
||||||
}
|
}
|
||||||
|
@ -355,6 +355,8 @@ void Window_Init(void) {
|
|||||||
Display_BitsPerPixel = GetDeviceCaps(hdc, BITSPIXEL);
|
Display_BitsPerPixel = GetDeviceCaps(hdc, BITSPIXEL);
|
||||||
Display_DpiX = GetDeviceCaps(hdc, LOGPIXELSX);
|
Display_DpiX = GetDeviceCaps(hdc, LOGPIXELSX);
|
||||||
Display_DpiY = GetDeviceCaps(hdc, LOGPIXELSY);
|
Display_DpiY = GetDeviceCaps(hdc, LOGPIXELSY);
|
||||||
|
|
||||||
|
Platform_Log2("DPI: %i, %i", &Display_DpiX, &Display_DpiY);
|
||||||
ReleaseDC(NULL, hdc);
|
ReleaseDC(NULL, hdc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user