diff options
Diffstat (limited to 'WebCore/platform/graphics/wx/ImageSourceWx.cpp')
-rw-r--r-- | WebCore/platform/graphics/wx/ImageSourceWx.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/wx/ImageSourceWx.cpp b/WebCore/platform/graphics/wx/ImageSourceWx.cpp index fc8ce71..2f71d62 100644 --- a/WebCore/platform/graphics/wx/ImageSourceWx.cpp +++ b/WebCore/platform/graphics/wx/ImageSourceWx.cpp @@ -37,6 +37,9 @@ #include <wx/defs.h> #include <wx/bitmap.h> +#if USE(WXGC) +#include <wx/graphics.h> +#endif #include <wx/image.h> #include <wx/rawbmp.h> @@ -224,7 +227,14 @@ NativeImagePtr ImageSource::createFrameAtIndex(size_t index) bmp->UseAlpha(); #endif ASSERT(bmp->IsOk()); + +#if USE(WXGC) + wxGraphicsBitmap* bitmap = new wxGraphicsBitmap(wxGraphicsRenderer::GetDefaultRenderer()->CreateBitmap(*bmp)); + delete bmp; + return bitmap; +#else return bmp; +#endif } float ImageSource::frameDurationAtIndex(size_t index) |