summaryrefslogtreecommitdiff
path: root/OPJViewer/source/OPJViewer.cpp
diff options
context:
space:
mode:
authorGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-04-27 17:20:26 +0000
committerGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-04-27 17:20:26 +0000
commit7c9dc11e3331d3770caf647ca50d58f2bca7a249 (patch)
tree68d34d0f19115bd9757004f1d3be81bbc1393e22 /OPJViewer/source/OPJViewer.cpp
parent848214e7894895f30c9f827ff9d2796cf2d3cc3c (diff)
workarounds for rendering differently sized components
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