Commit 79d75554 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz

d/ohmd: Make rotate in be more correct

parent 2caa08f8
......@@ -480,7 +480,15 @@ oh_device_create(ohmd_context *ctx,
}
if (quirk_rotate_inwards) {
int w2 = info.display.w_pixels / 2;
int h = info.display.h_pixels;
ohd->base.views[0].display.w_pixels = h;
ohd->base.views[0].display.h_pixels = w2;
ohd->base.views[0].rot = u_device_rotation_right;
ohd->base.views[1].display.w_pixels = h;
ohd->base.views[1].display.h_pixels = w2;
ohd->base.views[1].rot = u_device_rotation_left;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment