From: jinhyung.jo Date: Fri, 4 Sep 2015 03:19:17 +0000 (+0900) Subject: VIGS: Correct the physical screen size X-Git-Tag: TizenStudio_2.0_p2.3.2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90b49e93c265b1d88e047f20705cc8f0f48a75fd;p=sdk%2Femulator%2Femulator-kernel.git VIGS: Correct the physical screen size Use the correct value instead multiplied by 10. Change-Id: I7f3145c6d7700f39b15b6890b7048044a9ef4c26 Signed-off-by: Jinhyung Jo --- diff --git a/drivers/gpu/drm/vigs/vigs_output.c b/drivers/gpu/drm/vigs/vigs_output.c index f8d681375e5b..84f78909004c 100644 --- a/drivers/gpu/drm/vigs/vigs_output.c +++ b/drivers/gpu/drm/vigs/vigs_output.c @@ -3,9 +3,9 @@ #include "drm_crtc_helper.h" #include -#define DPI_DEF_VALUE 3160 +#define DPI_DEF_VALUE 316 #define DPI_MIN_VALUE 100 -#define DPI_MAX_VALUE 4800 +#define DPI_MAX_VALUE 600 #ifndef MODULE static int vigs_atoi(const char *str) @@ -288,10 +288,10 @@ int vigs_output_get_dpi(void) int vigs_output_get_phys_width(int dpi, u32 width) { - return ((width * 2540 / dpi) + 5) / 10; + return ((width * 254 / dpi) + 5) / 10; } int vigs_output_get_phys_height(int dpi, u32 height) { - return ((height * 2540 / dpi) + 5) / 10; + return ((height * 254 / dpi) + 5) / 10; }