From 81ea314838fd963915f11415a6ebd67cd525a0d9 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Mon, 2 Nov 2009 21:32:07 +0000 Subject: [PATCH] Fix rectangle() for Intel --- src/gui2/RenderContext.cpp | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/src/gui2/RenderContext.cpp b/src/gui2/RenderContext.cpp index 71b0a0d..14e0cc4 100644 --- a/src/gui2/RenderContext.cpp +++ b/src/gui2/RenderContext.cpp @@ -76,26 +76,12 @@ void RenderContext::border(int x, int y, int w, int h, Colour c) { offset(x, y); gl::colour(c); - - x += 1; - y += 1; - w -= 1; - h -= 1; - - glBegin(GL_LINES); - - glVertex2i(x, y); - glVertex2i(x + w, y); - - glVertex2i(x + w, y); - glVertex2i(x + w, y + h); - - glVertex2i(x + w, y + h); - glVertex2i(x, y + h); - - glVertex2i(x, y + h); - glVertex2i(x, y - 1); + glBegin(GL_LINE_LOOP); + glVertex2f(x + 0.1f, y + 0.1f); + glVertex2f(x + w - 0.1f, y + 0.1f); + glVertex2f(x + w - 0.1f, y + h - 0.1f); + glVertex2f(x + 0.1f, y + h - 0.1f); glEnd(); } -- 2.39.2