summaryrefslogtreecommitdiff
path: root/src/fl_font.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-06-19 10:23:24 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-06-19 10:23:24 +0200
commit02870242eea8b729b3dbd6d23eb77372f61c6318 (patch)
tree1c754a9b01c71b3e68aa795469c30b6c32074e17 /src/fl_font.cxx
parent232743c3a5d903be813f6c4445f3f96bab25cae0 (diff)
Move input method support to Fl_Screen_Driver from Fl_Graphics_Driver
Diffstat (limited to 'src/fl_font.cxx')
-rw-r--r--src/fl_font.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fl_font.cxx b/src/fl_font.cxx
index df7df43d7..423c49ab9 100644
--- a/src/fl_font.cxx
+++ b/src/fl_font.cxx
@@ -18,6 +18,7 @@
// Select fonts from the FLTK font table.
#include "flstring.h"
#include <FL/fl_draw.H>
+#include "Fl_Screen_Driver.H"
// -----------------------------------------------------------------------------
// all driver code is now in drivers/XXX/Fl_XXX_Graphics_Driver_xyz.cxx
@@ -51,15 +52,15 @@ void fl_draw(const char* str, int l, float x, float y) {
void fl_set_spot(int font, int size, int X, int Y, int W, int H, Fl_Window *win)
{
- Fl_Graphics_Driver::default_driver().set_spot(font, size, X, Y, W, H, win);
+ Fl::screen_driver()->set_spot(font, size, X, Y, W, H, win);
}
void fl_reset_spot()
{
- Fl_Graphics_Driver::default_driver().reset_spot();
+ Fl::screen_driver()->reset_spot();
}
void fl_set_status(int X, int Y, int W, int H)
{
- Fl_Graphics_Driver::default_driver().set_status(X, Y, W, H);
+ Fl::screen_driver()->set_status(X, Y, W, H);
}