summaryrefslogtreecommitdiff
path: root/src/Fl_Double_Window.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-02-09 18:52:21 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-02-09 18:52:21 +0000
commit4272f32b6b90c3238e4252d8588e1843504e4c7f (patch)
treeb5c16ff583d9f08d02e21942e11156596f0414a1 /src/Fl_Double_Window.cxx
parente02b3631b300141077870cd637793fde0760b97b (diff)
Fix typos for Linux from previous check-in.
- The previous check-in for OS X moved a few files and symbols around - Fixing for Linux what I broke in my previous commit - Fixing stuff for MSWindows next - CodeBlocks IDE file generation via CMake works git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11140 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Double_Window.cxx')
-rw-r--r--src/Fl_Double_Window.cxx48
1 files changed, 25 insertions, 23 deletions
diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx
index 5a8a42599..dae43a40d 100644
--- a/src/Fl_Double_Window.cxx
+++ b/src/Fl_Double_Window.cxx
@@ -60,18 +60,18 @@ static int can_xdbe() {
#endif
-Fl_Double_Window::Fl_Double_Window(int W, int H, const char *l)
-: Fl_Window(W,H,l),
- force_doublebuffering_(0)
-{
- type(FL_DOUBLE_WINDOW);
+Fl_Double_Window::Fl_Double_Window(int W, int H, const char *l)
+: Fl_Window(W,H,l),
+ force_doublebuffering_(0)
+{
+ type(FL_DOUBLE_WINDOW);
}
Fl_Double_Window::Fl_Double_Window(int X, int Y, int W, int H, const char *l)
-: Fl_Window(X,Y,W,H,l),
- force_doublebuffering_(0)
-{
+: Fl_Window(X,Y,W,H,l),
+ force_doublebuffering_(0)
+{
type(FL_DOUBLE_WINDOW);
}
@@ -107,6 +107,8 @@ void Fl_Graphics_Driver::copy_offscreen(int x, int y, int w, int h, Fl_Offscreen
#if defined(USE_X11)
+#include "drivers/Xlib/Fl_Xlib_Graphics_Driver.h"
+
#if HAVE_XRENDER
#include <X11/extensions/Xrender.h>
#endif
@@ -248,7 +250,7 @@ char fl_can_do_alpha_blending() {
@{
*/
-/**
+/**
Creation of an offscreen graphics buffer.
\param w,h width and height in pixels of the buffer.
\return the created graphics buffer.
@@ -312,12 +314,12 @@ static Fl_Surface_Device *_ss;
\param ctx the offscreen buffer.
*/
void fl_begin_offscreen(Fl_Offscreen ctx) {
- _ss = Fl_Surface_Device::surface();
+ _ss = Fl_Surface_Device::surface();
Fl_Display_Device::display_device()->set_current();
if (stack_ix<stack_max) {
stack_gc[stack_ix] = fl_gc;
stack_window[stack_ix] = fl_window;
- } else
+ } else
fprintf(stderr, "FLTK CGContext Stack overflow error\n");
stack_ix++;
@@ -433,7 +435,7 @@ void Fl_Double_Window::flush(int eraseoverlay) {
#elif defined(__APPLE__)
if ( myi->other_xid ) {
fl_begin_offscreen( myi->other_xid );
- fl_clip_region( 0 );
+ fl_clip_region( 0 );
draw();
fl_end_offscreen();
} else {
@@ -498,23 +500,23 @@ Fl_Double_Window::~Fl_Double_Window() {
Fl_Overlay_Window::Fl_Overlay_Window(int W, int H, const char *l)
-: Fl_Double_Window(W,H,l)
+: Fl_Double_Window(W,H,l)
{
- overlay_ = 0;
- force_doublebuffering_=1;
- image(0);
+ overlay_ = 0;
+ force_doublebuffering_=1;
+ image(0);
}
-
-
+
+
Fl_Overlay_Window::Fl_Overlay_Window(int X, int Y, int W, int H, const char *l)
-: Fl_Double_Window(X,Y,W,H,l)
+: Fl_Double_Window(X,Y,W,H,l)
{
- overlay_ = 0;
- force_doublebuffering_=1;
- image(0);
+ overlay_ = 0;
+ force_doublebuffering_=1;
+ image(0);
}
-
+
//
// End of "$Id$".
//