diff options
| author | Giuseppe Baruffa <gbaruffa@users.noreply.github.com> | 2007-04-27 17:20:26 +0000 |
|---|---|---|
| committer | Giuseppe Baruffa <gbaruffa@users.noreply.github.com> | 2007-04-27 17:20:26 +0000 |
| commit | 7c9dc11e3331d3770caf647ca50d58f2bca7a249 (patch) | |
| tree | 68d34d0f19115bd9757004f1d3be81bbc1393e22 /OPJViewer/source/OPJViewer.cpp | |
| parent | 848214e7894895f30c9f827ff9d2796cf2d3cc3c (diff) | |
workarounds for rendering differently sized components
Diffstat (limited to 'OPJViewer/source/OPJViewer.cpp')
| -rw-r--r-- | OPJViewer/source/OPJViewer.cpp | 4 |
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
|
