X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68278f98be1e296ce919e2a32c19ba3b298f67f6..e828e4f7f10ae3ce6c4575011564c457b02e57c3:/utils/ogl/src/bmpshape.cpp diff --git a/utils/ogl/src/bmpshape.cpp b/utils/ogl/src/bmpshape.cpp index 2cc8db9c10..a8715057d3 100644 --- a/utils/ogl/src/bmpshape.cpp +++ b/utils/ogl/src/bmpshape.cpp @@ -24,9 +24,7 @@ #include #endif -#ifdef PROLOGIO #include -#endif #include "basic.h" #include "basicp.h" @@ -60,7 +58,7 @@ void wxBitmapShape::OnDraw(wxDC& dc) double x, y; x = WXROUND(m_xpos - m_bitmap.GetWidth() / 2.0); y = WXROUND(m_ypos - m_bitmap.GetHeight() / 2.0); - dc.Blit(x, y, m_bitmap.GetWidth(), m_bitmap.GetHeight(), &tempDC, 0, 0); + dc.Blit((long) x, (long) y, m_bitmap.GetWidth(), m_bitmap.GetHeight(), &tempDC, 0, 0); } void wxBitmapShape::SetSize(double w, double h, bool recursive) @@ -79,23 +77,17 @@ void wxBitmapShape::SetSize(double w, double h, bool recursive) } #ifdef PROLOGIO -// Prolog database stuff -char *wxBitmapShape::GetFunctor() -{ - return "node_image"; -} - -void wxBitmapShape::WritePrologAttributes(wxExpr *clause) +void wxBitmapShape::WriteAttributes(wxExpr *clause) { // Can't really save the bitmap; so instantiate the bitmap // at a higher level in the application, from a symbol library. - wxRectangleShape::WritePrologAttributes(clause); + wxRectangleShape::WriteAttributes(clause); clause->AddAttributeValueString("filename", m_filename); } -void wxBitmapShape::ReadPrologAttributes(wxExpr *clause) +void wxBitmapShape::ReadAttributes(wxExpr *clause) { - wxRectangleShape::ReadPrologAttributes(clause); + wxRectangleShape::ReadAttributes(clause); clause->GetAttributeValue("filename", m_filename); } #endif