changeset 1848:9cd07d8fa9c1

properly convert coordinates for background drawing Spotted by: corvid <corvid@lavabit.com>
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 20 Jan 2011 20:38:15 +0100
parents 9878870a41ca
children a2e5201f8fe7
files dw/fltkviewbase.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkviewbase.cc	Wed Jan 19 22:27:18 2011 +0100
+++ b/dw/fltkviewbase.cc	Thu Jan 20 20:38:15 2011 +0100
@@ -174,7 +174,7 @@
 #endif
    core::Rectangle r (rect->x, rect->y, rect->width, rect->height);
    fl_color(bgColor);
-   fl_rectf(x () + translateViewXToCanvasX (rect->x),
+   fl_rectf(x () + translateCanvasXToViewX (rect->x),
             y () + translateCanvasYToViewY (rect->y),
             rect->width, rect->height);
    theLayout->expose (this, &r);