mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 15:19:53 -06:00
libui/windows: some work on hiDPI shit
still looks derpy but atleast the rendering and touchscreen aren't broken
This commit is contained in:
@ -26,6 +26,16 @@ static HRESULT doPaint(uiArea *a, ID2D1RenderTarget *rt, RECT *clip)
|
||||
|
||||
rt->BeginDraw();
|
||||
|
||||
{
|
||||
float dpi_x, dpi_y;
|
||||
D2D1_MATRIX_3X2_F dm;
|
||||
rt->GetDpi(&dpi_x, &dpi_y);
|
||||
ZeroMemory(&dm, sizeof (D2D1_MATRIX_3X2_F));
|
||||
dm._11 = 96.f/dpi_x;
|
||||
dm._22 = 96.f/dpi_y;
|
||||
rt->SetTransform(&dm);
|
||||
}
|
||||
|
||||
if (a->scrolling) {
|
||||
ZeroMemory(&scrollTransform, sizeof (D2D1_MATRIX_3X2_F));
|
||||
scrollTransform._11 = 1;
|
||||
|
Reference in New Issue
Block a user