From 6383d36f25bea8255609551dda7bdab7b5b43820 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 1 Apr 2010 00:08:59 -0300 Subject: [PATCH] Fixed a bug in JM_DRAW handler of colorviewer_msg_proc() function. It was introduced in a recent commit. --- src/widgets/colview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/colview.cpp b/src/widgets/colview.cpp index b4b18fd01..85e663906 100644 --- a/src/widgets/colview.cpp +++ b/src/widgets/colview.cpp @@ -130,7 +130,7 @@ static bool colorviewer_msg_proc(JWidget widget, JMessage msg) /* draw color background */ jrect_shrink(rect, 1); - draw_color(ji_screen, Rect(rect->x1, rect->y1, jrect_w(rect->x2), jrect_h(rect->y2)), + draw_color(ji_screen, Rect(rect->x1, rect->y1, jrect_w(rect), jrect_h(rect)), colorviewer->imgtype, colorviewer->color);