From 9e94a40d67d18da4845b0f1a357b2a63e59864a6 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Wed, 22 Mar 2006 23:56:16 +0000 Subject: [PATCH] fix selection box coordinate bugs ticket:41 and ticket:43 were both due to the fact that the right screen coordinates weren't being properly offset by the current ortho. --- alg/glseqbrowser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alg/glseqbrowser.cpp b/alg/glseqbrowser.cpp index fa5d6cc..155750f 100644 --- a/alg/glseqbrowser.cpp +++ b/alg/glseqbrowser.cpp @@ -133,7 +133,7 @@ void GlSeqBrowser::selectRegion(int top, int left, int bottom, int right) GLfloat x_scale = cur_ortho.width()/((float)viewport_size.x); GLfloat y_scale = cur_ortho.height()/((float)viewport_size.y); GLfloat x_left = cur_ortho.left + (left*x_scale); - GLfloat x_right = right * x_scale; + GLfloat x_right = cur_ortho.left + (right * x_scale); if (top > bottom) { // woah, someone gave us a rectangle with the origin in the lower left -- 2.30.2