@@ -0,0 +1,765 @@
+package ca.blarg.gdx.graphics;%0A%0Aimport com.badlogic.gdx.utils.viewport.ScreenViewport;%0A%0Apublic class LargePixelScreenViewport extends ScreenViewport %7B%0A%09@Override%0A%09public void update(int screenWidth, int screenHeight, boolean centerCamera) %7B%0A%09%09// TODO: these might need tweaking, this is fairly arbitrary%0A%09%09if (viewportWidth %3C 640 %7C%7C viewportHeight %3C 480)%0A%09%09%09setUnitsPerPixel(1);%0A%09%09else if (viewportWidth %3C 960 %7C%7C viewportHeight %3C 720)%0A%09%09%09setUnitsPerPixel(2);%0A%09%09else if (viewportWidth %3C 1280 %7C%7C viewportHeight %3C 960)%0A%09%09%09setUnitsPerPixel(3);%0A%09%09else if (viewportWidth %3C 1920 %7C%7C viewportHeight %3C 1080)%0A%09%09%09setUnitsPerPixel(4);%0A%09%09else%0A%09%09%09setUnitsPerPixel(5);%0A%0A%09%09// TODO: desktop %22retina%22 / 4K display sizes?%0A%0A%09%09super.update(screenWidth, screenHeight, centerCamera);%0A%09%7D%0A%7D%0A

add custom Viewport class to soon replace DefaultScreenPixelScaler