summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-02-14 11:52:21 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-02-14 11:52:21 +0100
commit868ab9696fb51628afac1ea10f7df6a27907a089 (patch)
tree921ca16bea3f59a4e64c67c268936e0dbc112ad3 /src/drivers
parentb055b82eb26738cd2170309ce476d9f1451204c0 (diff)
Rename class Fl_Display_Cairo_Graphics_Driver to Fl_X11_Cairo_Graphics_Driver
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.H (renamed from src/drivers/Cairo/Fl_Display_Cairo_Graphics_Driver.H)6
-rw-r--r--src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx (renamed from src/drivers/Cairo/Fl_Display_Cairo_Graphics_Driver.cxx)16
-rw-r--r--src/drivers/Wayland/fl_wayland_platform_init.cxx6
-rw-r--r--src/drivers/X11/Fl_X11_Window_Driver.cxx8
-rw-r--r--src/drivers/X11/fl_X11_platform_init.cxx6
-rw-r--r--src/drivers/Xlib/Fl_Xlib_Copy_Surface_Driver.cxx10
-rw-r--r--src/drivers/Xlib/Fl_Xlib_Image_Surface_Driver.cxx10
7 files changed, 31 insertions, 31 deletions
diff --git a/src/drivers/Cairo/Fl_Display_Cairo_Graphics_Driver.H b/src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.H
index 7c514b1cf..3ac7ca88a 100644
--- a/src/drivers/Cairo/Fl_Display_Cairo_Graphics_Driver.H
+++ b/src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.H
@@ -1,7 +1,7 @@
//
// Support for using Cairo to draw into X11 windows for the Fast Light Tool Kit (FLTK).
//
-// Copyright 2022 by Bill Spitzak and others.
+// Copyright 2022-2023 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -15,7 +15,7 @@
//
/* \file
- Declaration of class Fl_Display_Cairo_Graphics_Driver.
+ Declaration of class Fl_X11_Cairo_Graphics_Driver.
*/
#ifndef FL_DISPLAY_CAIRO_GRAPHICS_DRIVER_H
@@ -23,7 +23,7 @@
#include "Fl_Cairo_Graphics_Driver.H"
-class Fl_Display_Cairo_Graphics_Driver : public Fl_Cairo_Graphics_Driver {
+class Fl_X11_Cairo_Graphics_Driver : public Fl_Cairo_Graphics_Driver {
private:
static void *gc_;
public:
diff --git a/src/drivers/Cairo/Fl_Display_Cairo_Graphics_Driver.cxx b/src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx
index 02df902d8..d673c3dfa 100644
--- a/src/drivers/Cairo/Fl_Display_Cairo_Graphics_Driver.cxx
+++ b/src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx
@@ -1,7 +1,7 @@
//
// Support for using Cairo to draw into X11 windows for the Fast Light Tool Kit (FLTK).
//
-// Copyright 2022 by Bill Spitzak and others.
+// Copyright 2022-2023 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -15,17 +15,17 @@
//
/* \file
- Implementation of class Fl_Display_Cairo_Graphics_Driver .
+ Implementation of class Fl_X11_Cairo_Graphics_Driver.
*/
-#include "Fl_Display_Cairo_Graphics_Driver.H"
+#include "Fl_X11_Cairo_Graphics_Driver.H"
#include <FL/platform.H>
#include <cairo/cairo.h>
#include <pango/pangocairo.h>
#include <stdlib.h>
-void *Fl_Display_Cairo_Graphics_Driver::gc_ = NULL;
+void *Fl_X11_Cairo_Graphics_Driver::gc_ = NULL;
GC fl_gc;
@@ -37,7 +37,7 @@ ulong fl_xpixel(Fl_Color i) {
}
-void Fl_Display_Cairo_Graphics_Driver::scale(float f) {
+void Fl_X11_Cairo_Graphics_Driver::scale(float f) {
Fl_Graphics_Driver::scale(f);
if (cairo_) {
cairo_restore(cairo_);
@@ -48,17 +48,17 @@ void Fl_Display_Cairo_Graphics_Driver::scale(float f) {
}
-void Fl_Display_Cairo_Graphics_Driver::copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy) {
+void Fl_X11_Cairo_Graphics_Driver::copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy) {
XCopyArea(fl_display, pixmap, fl_window, (GC)Fl_Graphics_Driver::default_driver().gc(), int(srcx*scale()), int(srcy*scale()), int(w*scale()), int(h*scale()), int(x*scale()), int(y*scale()));
}
-void Fl_Display_Cairo_Graphics_Driver::gc(void *value) {
+void Fl_X11_Cairo_Graphics_Driver::gc(void *value) {
gc_ = value;
fl_gc = (GC)gc_;
}
-void *Fl_Display_Cairo_Graphics_Driver::gc() {
+void *Fl_X11_Cairo_Graphics_Driver::gc() {
return gc_;
}
diff --git a/src/drivers/Wayland/fl_wayland_platform_init.cxx b/src/drivers/Wayland/fl_wayland_platform_init.cxx
index 5154e6232..9b6be2878 100644
--- a/src/drivers/Wayland/fl_wayland_platform_init.cxx
+++ b/src/drivers/Wayland/fl_wayland_platform_init.cxx
@@ -1,7 +1,7 @@
//
// Wayland-specific code to initialize wayland support.
//
-// Copyright 2022 by Bill Spitzak and others.
+// Copyright 2022-2023 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -24,7 +24,7 @@
#ifdef FLTK_USE_X11
# include "../Xlib/Fl_Xlib_Copy_Surface_Driver.H"
# include <cairo-xlib.h>
-# include "../Cairo/Fl_Display_Cairo_Graphics_Driver.H"
+# include "../Cairo/Fl_X11_Cairo_Graphics_Driver.H"
# include "../X11/Fl_X11_Screen_Driver.H"
# include "../X11/Fl_X11_Window_Driver.H"
# include "../Xlib/Fl_Xlib_Image_Surface_Driver.H"
@@ -119,7 +119,7 @@ Fl_System_Driver *Fl_System_Driver::newSystemDriver() {
Fl_Graphics_Driver *Fl_Graphics_Driver::newMainGraphicsDriver() {
#ifdef FLTK_USE_X11
- if (!attempt_wayland()) return new Fl_Display_Cairo_Graphics_Driver();
+ if (!attempt_wayland()) return new Fl_X11_Cairo_Graphics_Driver();
#endif
return new Fl_Wayland_Graphics_Driver();
}
diff --git a/src/drivers/X11/Fl_X11_Window_Driver.cxx b/src/drivers/X11/Fl_X11_Window_Driver.cxx
index 531886f7a..7285bc152 100644
--- a/src/drivers/X11/Fl_X11_Window_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_Window_Driver.cxx
@@ -20,7 +20,7 @@
#include "Fl_X11_Screen_Driver.H"
#if FLTK_USE_CAIRO
# include <cairo-xlib.h>
-# include "../Cairo/Fl_Display_Cairo_Graphics_Driver.H"
+# include "../Cairo/Fl_X11_Cairo_Graphics_Driver.H"
#else
# include "../Xlib/Fl_Xlib_Graphics_Driver.H"
#endif // FLTK_USE_CAIRO
@@ -173,7 +173,7 @@ void Fl_X11_Window_Driver::flush_double(int erase_overlay)
pWindow->clear_damage(FL_DAMAGE_ALL);
}
#if FLTK_USE_CAIRO
- ((Fl_Display_Cairo_Graphics_Driver*)fl_graphics_driver)->set_cairo(cairo_);
+ ((Fl_X11_Cairo_Graphics_Driver*)fl_graphics_driver)->set_cairo(cairo_);
#endif
if (pWindow->damage() & ~FL_DAMAGE_EXPOSE) {
fl_clip_region(i->region); i->region = 0;
@@ -205,7 +205,7 @@ void Fl_X11_Window_Driver::flush_overlay()
cairo_t *overlay_cairo = cairo_create(s);
cairo_surface_destroy(s);
cairo_save(overlay_cairo);
- ((Fl_Display_Cairo_Graphics_Driver*)fl_graphics_driver)->set_cairo(overlay_cairo);
+ ((Fl_X11_Cairo_Graphics_Driver*)fl_graphics_driver)->set_cairo(overlay_cairo);
#endif
pWindow->as_overlay_window()->draw_overlay();
#if FLTK_USE_CAIRO
@@ -418,7 +418,7 @@ void Fl_X11_Window_Driver::make_current() {
cairo_surface_destroy(s);
cairo_save(cairo_);
}
- ((Fl_Display_Cairo_Graphics_Driver*)fl_graphics_driver)->set_cairo(cairo_);
+ ((Fl_X11_Cairo_Graphics_Driver*)fl_graphics_driver)->set_cairo(cairo_);
}
fl_graphics_driver->scale(scale);
#elif USE_XFT
diff --git a/src/drivers/X11/fl_X11_platform_init.cxx b/src/drivers/X11/fl_X11_platform_init.cxx
index 1388beefd..477978b97 100644
--- a/src/drivers/X11/fl_X11_platform_init.cxx
+++ b/src/drivers/X11/fl_X11_platform_init.cxx
@@ -1,7 +1,7 @@
//
// X11-specific code to initialize wayland support.
//
-// Copyright 2022 by Bill Spitzak and others.
+// Copyright 2022-2023 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -18,7 +18,7 @@
#include <FL/platform.H>
#include "../Xlib/Fl_Xlib_Copy_Surface_Driver.H"
#if FLTK_USE_CAIRO
-# include "../Cairo/Fl_Display_Cairo_Graphics_Driver.H"
+# include "../Cairo/Fl_X11_Cairo_Graphics_Driver.H"
#else
# include "../Xlib/Fl_Xlib_Graphics_Driver.H"
#endif
@@ -133,7 +133,7 @@ FL_EXPORT Fl_Fontdesc* fl_fonts = (Fl_Fontdesc*)built_in_table;
Fl_Graphics_Driver *Fl_Graphics_Driver::newMainGraphicsDriver()
{
#if FLTK_USE_CAIRO
- return new Fl_Display_Cairo_Graphics_Driver();
+ return new Fl_X11_Cairo_Graphics_Driver();
#else
return new Fl_Xlib_Graphics_Driver();
#endif
diff --git a/src/drivers/Xlib/Fl_Xlib_Copy_Surface_Driver.cxx b/src/drivers/Xlib/Fl_Xlib_Copy_Surface_Driver.cxx
index e4bbe29ef..014314def 100644
--- a/src/drivers/Xlib/Fl_Xlib_Copy_Surface_Driver.cxx
+++ b/src/drivers/Xlib/Fl_Xlib_Copy_Surface_Driver.cxx
@@ -1,7 +1,7 @@
//
// Copy-to-clipboard code for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2018 by Bill Spitzak and others.
+// Copyright 1998-2023 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -22,7 +22,7 @@
#include "../X11/Fl_X11_Screen_Driver.H"
#if FLTK_USE_CAIRO
# include <cairo-xlib.h>
-# include "../Cairo/Fl_Display_Cairo_Graphics_Driver.H"
+# include "../Cairo/Fl_X11_Cairo_Graphics_Driver.H"
# include <cairo/cairo.h>
#else
# include "Fl_Xlib_Graphics_Driver.H"
@@ -32,7 +32,7 @@
Fl_Xlib_Copy_Surface_Driver::Fl_Xlib_Copy_Surface_Driver(int w, int h) : Fl_Copy_Surface_Driver(w, h) {
#if FLTK_USE_CAIRO
- driver(new Fl_Display_Cairo_Graphics_Driver());
+ driver(new Fl_X11_Cairo_Graphics_Driver());
#else
driver(new Fl_Xlib_Graphics_Driver());
#endif
@@ -46,7 +46,7 @@ Fl_Xlib_Copy_Surface_Driver::Fl_Xlib_Copy_Surface_Driver(int w, int h) : Fl_Copy
cairo_surface_destroy(surf);
cairo_scale(cairo_, 1/s, 1/s);
cairo_save(cairo_);
- ((Fl_Display_Cairo_Graphics_Driver*)driver())->set_cairo(cairo_);
+ ((Fl_X11_Cairo_Graphics_Driver*)driver())->set_cairo(cairo_);
#endif
driver()->push_no_clip();
fl_window = xid;
@@ -78,7 +78,7 @@ void Fl_Xlib_Copy_Surface_Driver::set_current() {
oldwindow = fl_window;
fl_window = xid;
#if FLTK_USE_CAIRO
- ((Fl_Display_Cairo_Graphics_Driver*)driver())->set_cairo(cairo_);
+ ((Fl_X11_Cairo_Graphics_Driver*)driver())->set_cairo(cairo_);
#endif
}
diff --git a/src/drivers/Xlib/Fl_Xlib_Image_Surface_Driver.cxx b/src/drivers/Xlib/Fl_Xlib_Image_Surface_Driver.cxx
index 240ced649..bcaf7d46a 100644
--- a/src/drivers/Xlib/Fl_Xlib_Image_Surface_Driver.cxx
+++ b/src/drivers/Xlib/Fl_Xlib_Image_Surface_Driver.cxx
@@ -1,7 +1,7 @@
//
// Draw-to-image code for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2018 by Bill Spitzak and others.
+// Copyright 1998-2023 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -19,7 +19,7 @@
#include "../../Fl_Screen_Driver.H"
#if FLTK_USE_CAIRO
# include <cairo-xlib.h>
-# include "../Cairo/Fl_Display_Cairo_Graphics_Driver.H"
+# include "../Cairo/Fl_X11_Cairo_Graphics_Driver.H"
#else
# include "Fl_Xlib_Graphics_Driver.H"
#endif // FLTK_USE_CAIRO
@@ -38,12 +38,12 @@ Fl_Xlib_Image_Surface_Driver::Fl_Xlib_Image_Surface_Driver(int w, int h, int hig
offscreen = (Fl_Offscreen)XCreatePixmap(fl_display, RootWindow(fl_display, fl_screen), w, h, fl_visual->depth);
}
#if FLTK_USE_CAIRO
- driver(new Fl_Display_Cairo_Graphics_Driver());
+ driver(new Fl_X11_Cairo_Graphics_Driver());
cairo_surface_t *s = cairo_xlib_surface_create(fl_display, offscreen, fl_visual->visual, w, h);
cairo_ = cairo_create(s);
cairo_surface_destroy(s);
cairo_save(cairo_);
- ((Fl_Display_Cairo_Graphics_Driver*)driver())->set_cairo(cairo_);
+ ((Fl_X11_Cairo_Graphics_Driver*)driver())->set_cairo(cairo_);
#else
driver(new Fl_Xlib_Graphics_Driver());
#endif
@@ -63,7 +63,7 @@ void Fl_Xlib_Image_Surface_Driver::set_current() {
pre_window = fl_window;
fl_window = offscreen;
#if FLTK_USE_CAIRO
- ((Fl_Display_Cairo_Graphics_Driver*)driver())->set_cairo(cairo_);
+ ((Fl_X11_Cairo_Graphics_Driver*)driver())->set_cairo(cairo_);
#endif
}