From 892584c5fe241b628b98caa3936bb031c4940fce Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sun, 22 Apr 2012 20:26:40 +0100 Subject: [PATCH] Fix Off-by-one error with zoom Window using OpenGL --- src/Renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Renderer.cpp b/src/Renderer.cpp index b254e59b9..3a29d2002 100644 --- a/src/Renderer.cpp +++ b/src/Renderer.cpp @@ -247,8 +247,8 @@ void Renderer::RenderZoom() zcx1 = (zoomScopePosition.X)*xfactor; zcx0 = (zoomScopePosition.X+zoomScopeSize)*xfactor; - zcy1 = (zoomScopePosition.Y)*yfactor; - zcy0 = ((zoomScopePosition.Y+zoomScopeSize))*yfactor; + zcy1 = (zoomScopePosition.Y-1)*yfactor; + zcy0 = ((zoomScopePosition.Y-1+zoomScopeSize))*yfactor; glGetIntegerv(GL_BLEND_SRC, &origBlendSrc); glGetIntegerv(GL_BLEND_DST, &origBlendDst);