OSDN Git Service

SF: support higher resolutions
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 20 Jan 2016 18:25:52 +0000 (02:25 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 5 May 2016 17:58:00 +0000 (01:58 +0800)
Add support for Surface Pro 4.

services/surfaceflinger/SurfaceFlinger.cpp

index 7461613..31889f7 100644 (file)
@@ -598,8 +598,12 @@ status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display,
                     density = 140;
                 } else if (area < 1920 * 1080) {
                     density = 160;
-                } else {
+                } else if (area < 2160 * 1440) {
                     density = 240;
+                } else if (area < 2736 * 1824) {
+                    density = 280;
+                } else {
+                    density = 320;
                 }
                 ALOGI("auto set density to %d", density);
             }