From 668dfd109f183ad8c4731f7fb8af39977ea89920 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 4 Feb 2011 23:32:53 +0000 Subject: Fix STR #2535: clipping + coordinate transformations are now managed separately for each surface device. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Device.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Fl_Device.cxx') diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx index 0a099bc85..790545703 100644 --- a/src/Fl_Device.cxx +++ b/src/Fl_Device.cxx @@ -51,6 +51,16 @@ void Fl_Surface_Device::set_current(void) _surface = this; } +static matrix m0 = {1, 0, 0, 1, 0, 0}; + +Fl_Graphics_Driver::Fl_Graphics_Driver() { + sptr=0; rstackptr=0; + fl_clip_state_number=0; + m = m0; + fl_matrix = &m; + p = (XPOINT *)0; +}; + // // End of "$Id$". // -- cgit v1.2.3