From b92a9464c756a7dd9dd4e9736d52297c3352b073 Mon Sep 17 00:00:00 2001 From: arif Date: Tue, 3 Mar 2009 18:01:41 +0000 Subject: [PATCH] gdiplus is added to support bmp formats --- plugin/gdiplus/gvplugin_gdiplus.vcproj | 235 +++++++++++++++++++++++++ plugin/gdiplus/gvrender_gdiplus.cpp | 4 +- 2 files changed, 237 insertions(+), 2 deletions(-) create mode 100644 plugin/gdiplus/gvplugin_gdiplus.vcproj diff --git a/plugin/gdiplus/gvplugin_gdiplus.vcproj b/plugin/gdiplus/gvplugin_gdiplus.vcproj new file mode 100644 index 000000000..01ed54b6a --- /dev/null +++ b/plugin/gdiplus/gvplugin_gdiplus.vcproj @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugin/gdiplus/gvrender_gdiplus.cpp b/plugin/gdiplus/gvrender_gdiplus.cpp index a8bedae89..7e0250410 100755 --- a/plugin/gdiplus/gvrender_gdiplus.cpp +++ b/plugin/gdiplus/gvrender_gdiplus.cpp @@ -29,7 +29,7 @@ #include #include -extern "C" size_t gvdevice_write(GVJ_t *job, const unsigned char *s, unsigned int len); +extern "C" size_t gvwrite(GVJ_t *job, const unsigned char *s, unsigned int len); using namespace std; using namespace Gdiplus; @@ -99,7 +99,7 @@ static void gdiplusgen_end_job(GVJ_t *job) HGLOBAL buffer = NULL; GetHGlobalFromStream(stream, &buffer); stream->Release(); - gvdevice_write(job, (unsigned char*)GlobalLock(buffer), GlobalSize(buffer)); + gvwrite(job, (unsigned char*)GlobalLock(buffer), GlobalSize(buffer)); GlobalFree(buffer); /* since this is an internal job, shut down GDI+ */ -- 2.40.0