Use the hardware scaler again on Android. Move all DPI handling code from java to app-android.cpp.

This commit is contained in:
Henrik Rydgard committed 2015-12-16 14:52:44 +01:00
1 parent 04f8bffa29
commit 13515bf235
13 files changed
+239 -197

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ Bounds UIContext::GetScissorBounds() {
void UIContext::ActivateTopScissor() {
if (scissorStack_.size()) {
const Bounds &bounds = scissorStack_.back();
float scale = 1.0f / g_dpi_scale;
float scale = pixel_in_dps;
int x = scale * bounds.x;
int y = scale * bounds.y;
int w = scale * bounds.w;