changeset 1828:314d5caca56d

a little fltkpreview
author corvid <corvid@lavabit.com>
date Wed, 12 Jan 2011 22:22:33 +0000
parents 381e20f15250
children 6aa55383f7f3
files dw/fltkpreview.cc
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkpreview.cc	Wed Jan 12 22:14:12 2011 +0000
+++ b/dw/fltkpreview.cc	Wed Jan 12 22:22:33 2011 +0000
@@ -24,7 +24,7 @@
 
 #include <FL/Fl.H>
 #include <FL/Fl_Bitmap.H>
-#include <fltk/draw.h>
+#include <FL/fl_draw.H>
 #include <stdio.h>
 
 #include "preview.xbm"
@@ -142,9 +142,8 @@
    setcolor(((FltkColor*)color)->colors[shading]);
    fillrect (rect);
 #endif
-   setcolor(((FltkColor*)color)->colors[shading]);
-   drawtext(text, len,
-            translateCanvasXToViewX (x), translateCanvasYToViewY (y));
+   fl_color(((FltkColor*)color)->colors[shading]);
+   fl_draw(text, len, translateCanvasXToViewX (x), translateCanvasYToViewY(y));
 }
 
 void FltkPreview::drawImage (core::Imgbuf *imgbuf, int xRoot, int yRoot,