fix dpi scaling (for all ?)

This commit is contained in:
Megamouse 2017-06-06 18:54:18 +02:00 committed by Ani
parent bda945218d
commit affda37d04
2 changed files with 11 additions and 1 deletions

View file

@ -136,12 +136,20 @@ void gs_frame::delete_context(void* ctx)
int gs_frame::client_width()
{
#ifdef _WIN32
return size().width();
#else
return size().width() * devicePixelRatio();
#endif
}
int gs_frame::client_height()
{
#ifdef _WIN32
return size().height();
#else
return size().height() * devicePixelRatio();
#endif
}
void gs_frame::flip(draw_context_t)