Skip to content

Commit

Permalink
Remove _sgc private member of Fl_GDI_Image_Surface_Driver that is not…
Browse files Browse the repository at this point in the history
… necessary.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12382 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Aug 15, 2017
1 parent ec951ce commit f7f2e06
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/drivers/GDI/Fl_GDI_Image_Surface_Driver.cxx
Expand Up @@ -32,7 +32,6 @@ class Fl_GDI_Image_Surface_Driver : public Fl_Image_Surface_Driver {
public:
Fl_Surface_Device *previous;
Window pre_window;
HDC _sgc;
int _savedc;
Fl_GDI_Image_Surface_Driver(int w, int h, int high_res, Fl_Offscreen off);
~Fl_GDI_Image_Surface_Driver();
Expand Down Expand Up @@ -61,7 +60,6 @@ Fl_GDI_Image_Surface_Driver::Fl_GDI_Image_Surface_Driver(int w, int h, int high_
if (!offscreen) offscreen = CreateCompatibleBitmap(fl_GetDC(0), w, h);
driver(new Fl_GDI_Graphics_Driver);
if (d != 1 && high_res) driver()->scale(d);
_sgc = NULL;
}


Expand All @@ -74,7 +72,6 @@ Fl_GDI_Image_Surface_Driver::~Fl_GDI_Image_Surface_Driver() {
void Fl_GDI_Image_Surface_Driver::set_current() {
pre_window = fl_window;
if (!previous) previous = Fl_Surface_Device::surface();
if (!_sgc) _sgc = (HDC)previous->driver()->gc();
HDC gc = fl_makeDC(offscreen);
Fl_Surface_Device::set_current();
driver()->gc(gc);
Expand All @@ -97,7 +94,6 @@ void Fl_GDI_Image_Surface_Driver::untranslate() {
Fl_RGB_Image* Fl_GDI_Image_Surface_Driver::image()
{
Fl_RGB_Image *image = Fl::screen_driver()->read_win_rectangle(NULL, 0, 0, width, height, 0);
previous->driver()->gc(_sgc);
return image;
}

Expand Down

0 comments on commit f7f2e06

Please sign in to comment.