From c758b2fa68b76fe5a07066521a7a5e09f2374275 Mon Sep 17 00:00:00 2001 From: Nikhil Devshatwar Date: Wed, 3 Sep 2014 17:01:46 +0530 Subject: [PATCH] display-kmscube: Render full video buffer The co-ordinates of texture values only use the 80% of the buffer as texture Due to this, cropped video gets displayed Fix this by changing the co-ordinates to 100% Signed-off-by: Nikhil Devshatwar --- util/display-kmscube.c | 48 +++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/util/display-kmscube.c b/util/display-kmscube.c index 9a4d00a..0c00d67 100644 --- a/util/display-kmscube.c +++ b/util/display-kmscube.c @@ -555,35 +555,35 @@ static void draw(struct display_kmscube *disp_kmsc) static const GLfloat vTexUVs[] = { // front - 0.1f, 0.9f, - 0.9f, 0.9f, - 0.1f, 0.1f, - 0.9f, 0.1f, + 0.0f, 1.0f, + 1.0f, 1.0f, + 0.0f, 0.0f, + 1.0f, 0.0f, // back - 0.1f, 0.9f, - 0.9f, 0.9f, - 0.1f, 0.1f, - 0.9f, 0.1f, + 0.0f, 1.0f, + 1.0f, 1.0f, + 0.0f, 0.0f, + 1.0f, 0.0f, // right - 0.1f, 0.9f, - 0.9f, 0.9f, - 0.1f, 0.1f, - 0.9f, 0.1f, + 0.0f, 1.0f, + 1.0f, 1.0f, + 0.0f, 0.0f, + 1.0f, 0.0f, // left - 0.1f, 0.9f, - 0.9f, 0.9f, - 0.1f, 0.1f, - 0.9f, 0.1f, + 0.0f, 1.0f, + 1.0f, 1.0f, + 0.0f, 0.0f, + 1.0f, 0.0f, // top - 0.1f, 0.9f, - 0.9f, 0.9f, - 0.1f, 0.1f, - 0.9f, 0.1f, + 0.0f, 1.0f, + 1.0f, 1.0f, + 0.0f, 0.0f, + 1.0f, 0.0f, // bottom - 0.1f, 0.9f, - 0.9f, 0.9f, - 0.1f, 0.1f, - 0.9f, 0.1f, + 0.0f, 1.0f, + 1.0f, 1.0f, + 0.0f, 0.0f, + 1.0f, 0.0f, }; /* clear the color buffer */ -- 2.26.2