summaryrefslogtreecommitdiff
path: root/src/Fl_Double_Window.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-02-05 20:28:31 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-02-05 20:28:31 +0000
commit89c0329b719735ed3237508b66ca4d7662782a42 (patch)
treec3ba7eb5ba5f9edb0fc15babe683b647908721bd /src/Fl_Double_Window.cxx
parent0deaeaa80c40531d59ca39e17e7f718430efcb4f (diff)
Fix FLUID text color (STR #662)
src/Fl_Double_Window.cxx: - Save/restore colors. src/Fl_Pixmap.cxx: - Save/restore colors. src/fl_draw_image_mac.cxx: - Save/restore colors. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Double_Window.cxx')
-rw-r--r--src/Fl_Double_Window.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx
index 7537c64b4..9d10d8d02 100644
--- a/src/Fl_Double_Window.cxx
+++ b/src/Fl_Double_Window.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Double_Window.cxx,v 1.12.2.4.2.14 2004/12/27 19:16:42 matthiaswm Exp $"
+// "$Id$"
//
// Double-buffered window code for the Fast Light Tool Kit (FLTK).
//
@@ -115,12 +115,16 @@ void fl_copy_offscreen(int x,int y,int w,int h,GWorldPtr gWorld,int srcx,int src
Rect dst;
GrafPtr dstPort; GetPort(&dstPort);
dst.top = y; dst.left = x; dst.bottom = y+h; dst.right = x+w;
- RGBColor rgb;
+ RGBColor rgb, oldbg, oldfg;
+ GetForeColor(&oldfg);
+ GetBackColor(&oldbg);
rgb.red = 0xffff; rgb.green = 0xffff; rgb.blue = 0xffff;
RGBBackColor( &rgb );
rgb.red = 0x0000; rgb.green = 0x0000; rgb.blue = 0x0000;
RGBForeColor( &rgb );
CopyBits(GetPortBitMapForCopyBits(gWorld), GetPortBitMapForCopyBits(dstPort), &src, &dst, srcCopy, 0L);
+ RGBBackColor(&oldbg);
+ RGBForeColor(&oldfg);
}
void fl_delete_offscreen(GWorldPtr gWorld) {
@@ -353,5 +357,5 @@ Fl_Double_Window::~Fl_Double_Window() {
}
//
-// End of "$Id: Fl_Double_Window.cxx,v 1.12.2.4.2.14 2004/12/27 19:16:42 matthiaswm Exp $".
+// End of "$Id$".
//