summaryrefslogtreecommitdiff
path: root/src/drivers/Cairo
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/Cairo')
-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
2 files changed, 11 insertions, 11 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_;
}