diff --git a/Fltk/FlGui.cpp b/Fltk/FlGui.cpp index 9bfff256cc3cc02c2b8ef2c6a60f535d48690b42..a6ebc497f13e6ea4442ba674f20afdb02154b8d8 100644 --- a/Fltk/FlGui.cpp +++ b/Fltk/FlGui.cpp @@ -820,8 +820,8 @@ void FlGui::splitCurrentOpenglWindow(char how) void FlGui::copyCurrentOpenglWindowToClipboard() { #if defined(WIN32) - GLint width = FlGui::instance()->getCurrentOpenglWindow()->w(); - GLint height = FlGui::instance()->getCurrentOpenglWindow()->h(); + GLint width = getCurrentOpenglWindow()->w(); + GLint height = getCurrentOpenglWindow()->h(); // lines have to be 32 bytes aligned, suppose 24 bits per pixel; just crop it width -= width % 4;