summaryrefslogtreecommitdiff
path: root/OPJViewer/source/OPJViewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'OPJViewer/source/OPJViewer.cpp')
-rw-r--r--OPJViewer/source/OPJViewer.cpp4
1 files changed, 4 insertions, 0 deletions
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