From 7c9dc11e3331d3770caf647ca50d58f2bca7a249 Mon Sep 17 00:00:00 2001 From: Giuseppe Baruffa Date: Fri, 27 Apr 2007 17:20:26 +0000 Subject: workarounds for rendering differently sized components --- OPJViewer/source/OPJViewer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OPJViewer/source/OPJViewer.cpp') diff --git a/OPJViewer/source/OPJViewer.cpp b/OPJViewer/source/OPJViewer.cpp index bf7a2077..fb98e24d 100644 --- a/OPJViewer/source/OPJViewer.cpp +++ b/OPJViewer/source/OPJViewer.cpp @@ -803,6 +803,7 @@ void OPJCanvas::OnDraw(wxDC& dc) // the left button. void OPJCanvas::OnEvent(wxMouseEvent& event) { +#if USE_PENCIL_ON_CANVAS wxClientDC dc(this); PrepareDC(dc); @@ -814,6 +815,7 @@ void OPJCanvas::OnEvent(wxMouseEvent& event) } xpos = pt.x; ypos = pt.y; +#endif } void OPJFrame::OnSize(wxSizeEvent& WXUNUSED(event)) @@ -856,7 +858,9 @@ const long style): GetClientSize(&width, &height); OPJCanvas *canvas = new OPJCanvas(fname, this, wxPoint(0, 0), wxSize(width, height)); +#if USE_PENCIL_ON_CANVAS canvas->SetCursor(wxCursor(wxCURSOR_PENCIL)); +#endif m_canvas = canvas; // Give it scrollbars -- cgit v1.2.3