Debian Codegraph @

debian/patches/43_wx3.2_compat.patch

raw symbols SCIP
1 Descriptionscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/patches/`43_wx3.2_compat.patch`#Description.: wxWidgets 3.2 compatibility
2 Bug-Debianscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/patches/`43_wx3.2_compat.patch`#Bug-Debian.: https://bugs.debian.org/1019819scip-debian-bts debian-bts . . 1019819:
3 Forwardedscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/patches/`43_wx3.2_compat.patch`#Forwarded.: no
4 Authorscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/patches/`43_wx3.2_compat.patch`#Author.: Scott Talbert <[email protected]scip-debian . . . identity/`[email protected]`.>
5 Last-Updatescip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/patches/`43_wx3.2_compat.patch`#Last-Update.: 2022-10-23
6
7 --- a/src/main.cppscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/upstream/`src/main.cpp`:
8 +++ b/src/main.cppscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/upstream/`src/main.cpp`:
9 @@ -625,14 +625,16 @@ END_EVENT_TABLE()
10
11 TestGLCanvas::TestGLCanvas(wxWindow *_parent, wxWindowID id,
12 const wxPoint& pos, const wxSize& size, long style, const wxString& name)
13 - : wxGLCanvas(_parent, id, pos, size, style|wxFULL_REPAINT_ON_RESIZE, name)
14 + : wxGLCanvas(_parent, id, NULL, pos, size, style|wxFULL_REPAINT_ON_RESIZE, name)
15 {
16 initdone=false;
17 shownHQ=false;
18 + m_glRC = new wxGLContext(this);
19 }
20
21 TestGLCanvas::~TestGLCanvas()
22 {
23 + delete m_glRC;
24 }
25
26
27 @@ -660,11 +662,7 @@ void TestGLCanvas::OnPaint( wxPaintEvent
28 /* must always be here */
29 wxPaintDC dc(this);
30
31 -#ifndef __WXMOTIF__
32 - if (!GetContext()) return;
33 -#endif
34 -
35 - SetCurrent();
36 + SetCurrent(*m_glRC);
37
38 if (!initdone) {
39 static bool once=false;
40 @@ -702,18 +700,12 @@ void TestGLCanvas::OnPaint( wxPaintEvent
41 void TestGLCanvas::OnSize(wxSizeEvent& event)
42 {
43
44 - // this is also necessary to update the context on some platforms
45 - wxGLCanvas::OnSize(event);
46 -
47 // set GL viewport (not called by wxGLCanvas::OnSize on all platforms...)
48
49 GetClientSize(&winx, &winy);
50 mainCanvas.SetVideoSize(winx);
51 -#ifndef __WXMOTIF__
52 - if ( GetContext() )
53 -#endif
54 {
55 - SetCurrent();
56 + SetCurrent(*m_glRC);
57 glViewport(0, 0, (GLint) winx, (GLint) winy);
58 }
59 }
60 --- a/src/main.hscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/upstream/`src/main.h`:
61 +++ b/src/main.hscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/upstream/`src/main.h`:
62 @@ -141,6 +141,7 @@ public:
63
64 private:
65 //wxWindow *parent;
66 + wxGLContext *m_glRC;
67 DECLARE_EVENT_TABLE()
68 };
69