summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bceff57)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40938
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/image.h"
#include "wx/imaglist.h"
#include "wx/tokenzr.h"
#include "wx/image.h"
#include "wx/imaglist.h"
#include "wx/tokenzr.h"
+
+#ifdef wxHAVE_RAW_BITMAP
#include "Platform.h"
#include "PlatWX.h"
#include "Platform.h"
#include "PlatWX.h"
ColourAllocated fill, int alphaFill,
ColourAllocated outline, int alphaOutline,
int /*flags*/) {
ColourAllocated fill, int alphaFill,
ColourAllocated outline, int alphaOutline,
int /*flags*/) {
+#ifdef wxHAVE_RAW_BITMAP
int x, y;
wxRect r = wxRectFromPRectangle(rc);
wxBitmap bmp(r.width, r.height, 32);
int x, y;
wxRect r = wxRectFromPRectangle(rc);
wxBitmap bmp(r.width, r.height, 32);
// Draw the bitmap
hdc->DrawBitmap(bmp, r.x, r.y, true);
// Draw the bitmap
hdc->DrawBitmap(bmp, r.x, r.y, true);
+
+#else
+ RectangleDraw(rc, outline, fill);
+#endif
}
void SurfaceImpl::Ellipse(PRectangle rc, ColourAllocated fore, ColourAllocated back) {
}
void SurfaceImpl::Ellipse(PRectangle rc, ColourAllocated fore, ColourAllocated back) {
#include "wx/image.h"
#include "wx/imaglist.h"
#include "wx/tokenzr.h"
#include "wx/image.h"
#include "wx/imaglist.h"
#include "wx/tokenzr.h"
+
+#ifdef wxHAVE_RAW_BITMAP
#include "Platform.h"
#include "PlatWX.h"
#include "Platform.h"
#include "PlatWX.h"
ColourAllocated fill, int alphaFill,
ColourAllocated outline, int alphaOutline,
int /*flags*/) {
ColourAllocated fill, int alphaFill,
ColourAllocated outline, int alphaOutline,
int /*flags*/) {
+#ifdef wxHAVE_RAW_BITMAP
int x, y;
wxRect r = wxRectFromPRectangle(rc);
wxBitmap bmp(r.width, r.height, 32);
int x, y;
wxRect r = wxRectFromPRectangle(rc);
wxBitmap bmp(r.width, r.height, 32);
// Draw the bitmap
hdc->DrawBitmap(bmp, r.x, r.y, true);
// Draw the bitmap
hdc->DrawBitmap(bmp, r.x, r.y, true);
+
+#else
+ RectangleDraw(rc, outline, fill);
+#endif
}
void SurfaceImpl::Ellipse(PRectangle rc, ColourAllocated fore, ColourAllocated back) {
}
void SurfaceImpl::Ellipse(PRectangle rc, ColourAllocated fore, ColourAllocated back) {