summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-03-08 16:08:34 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-03-08 16:08:34 +0000
commit548ac7a62306a8e0e504813e858815f9aeb5864d (patch)
treeaf742d612b859dd56e390e5b65c9910f4be61b65 /src
parent58eb52536620ee40b5c90e0e3f9e18a9340644d0 (diff)
A few more Pico fixes. Tests with single buffered windows render well for those parts that are implemented.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Pico/Fl_Pico_Graphics_Driver.cxx8
-rw-r--r--src/drivers/PicoSDL/Fl_PicoSDL_Graphics_Driver.cxx2
2 files changed, 8 insertions, 2 deletions
diff --git a/src/drivers/Pico/Fl_Pico_Graphics_Driver.cxx b/src/drivers/Pico/Fl_Pico_Graphics_Driver.cxx
index 873e51c79..407b29662 100644
--- a/src/drivers/Pico/Fl_Pico_Graphics_Driver.cxx
+++ b/src/drivers/Pico/Fl_Pico_Graphics_Driver.cxx
@@ -19,6 +19,14 @@
#include "../../config_lib.h"
#include "Fl_Pico_Graphics_Driver.h"
+#include <FL/fl_draw.H>
+
+
+void fl_rectf(int x, int y, int w, int h, uchar r, uchar g, uchar b) {
+ fl_color(r,g,b);
+ fl_rectf(x,y,w,h);
+}
+
void Fl_Pico_Graphics_Driver::point(int x, int y)
{
diff --git a/src/drivers/PicoSDL/Fl_PicoSDL_Graphics_Driver.cxx b/src/drivers/PicoSDL/Fl_PicoSDL_Graphics_Driver.cxx
index 4964fce58..571fe8560 100644
--- a/src/drivers/PicoSDL/Fl_PicoSDL_Graphics_Driver.cxx
+++ b/src/drivers/PicoSDL/Fl_PicoSDL_Graphics_Driver.cxx
@@ -39,7 +39,6 @@ void Fl_PicoSDL_Graphics_Driver::rectf(int x, int y, int w, int h)
{
uchar r, g, b;
Fl::get_color(Fl_Graphics_Driver::color(), r, g, b);
- printf("[] %d %d %d\n", r, g, b);
SDL_SetRenderDrawColor((SDL_Renderer*)fl_window, r, g, b, SDL_ALPHA_OPAQUE);
SDL_Rect rect = {x, y, w, h};
SDL_RenderFillRect((SDL_Renderer*)fl_window, &rect);
@@ -50,7 +49,6 @@ void Fl_PicoSDL_Graphics_Driver::line(int x, int y, int x1, int y1)
{
uchar r, g, b;
Fl::get_color(Fl_Graphics_Driver::color(), r, g, b);
- printf("-- %d %d %d\n", r, g, b);
SDL_SetRenderDrawColor((SDL_Renderer*)fl_window, r, g, b, SDL_ALPHA_OPAQUE);
SDL_RenderDrawLine((SDL_Renderer*)fl_window, x, y, x1, y1);
}