Skip to content

Commit

Permalink
Widgets|libappfw: UI downscaling in small HiDPI window capped at 2/3s
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 23, 2017
1 parent 59614dc commit ef73a33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/sdk/libappfw/src/vrwindowtransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ DENG2_PIMPL(VRWindowTransform)

// Since the UI style doesn't yet support scaling at runtime based on
// display resolution (or any other factor).
return 1.f / Rangef(.5f, 1.0f).clamp((width() - GuiWidget::toDevicePixels(256.f)) /
GuiWidget::toDevicePixels(768.f));
return 1.f / Rangef(.66666f, 1.0f).clamp((width() - GuiWidget::toDevicePixels(256.f)) /
GuiWidget::toDevicePixels(768.f));
}

void drawContent() const
Expand Down

0 comments on commit ef73a33

Please sign in to comment.