Cosmetics

This commit is contained in:
Birunthan Mohanathas 2013-03-26 21:20:13 +02:00
parent db427f58cf
commit 7f51273950
4 changed files with 14 additions and 9 deletions

View File

@ -16,8 +16,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#ifndef RM_GFX_CANVASGDI_H_ #ifndef RM_GFX_CANVASGDIP_H_
#define RM_GFX_CANVASGDI_H_ #define RM_GFX_CANVASGDIP_H_
#include "Canvas.h" #include "Canvas.h"
#include "TextFormatGDIP.h" #include "TextFormatGDIP.h"

View File

@ -16,8 +16,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#ifndef RM_GFX_TEXTFORMATGDI_H_ #ifndef RM_GFX_TEXTFORMATGDIP_H_
#define RM_GFX_TEXTFORMATGDI_H_ #define RM_GFX_TEXTFORMATGDIP_H_
#include "TextFormat.h" #include "TextFormat.h"
#include <GdiPlus.h> #include <GdiPlus.h>

View File

@ -21,6 +21,11 @@
namespace Gfx { namespace Gfx {
WICBitmapLockGDIP::WICBitmapLockGDIP() :
m_RefCount(1)
{
}
IFACEMETHODIMP WICBitmapLockGDIP::QueryInterface(REFIID riid, void** ppvObject) IFACEMETHODIMP WICBitmapLockGDIP::QueryInterface(REFIID riid, void** ppvObject)
{ {
return E_NOTIMPL; return E_NOTIMPL;

View File

@ -16,8 +16,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#ifndef RM_GFX_BITMAPLOCKGDI_H_ #ifndef RM_GFX_WICBITMAPLOCKGDIP_H_
#define RM_GFX_BITMAPLOCKGDI_H_ #define RM_GFX_WICBITMAPLOCKGDIP_H_
#include <Windows.h> #include <Windows.h>
#include <GdiPlus.h> #include <GdiPlus.h>
@ -30,7 +30,9 @@ namespace Gfx {
class WICBitmapLockGDIP : public IWICBitmapLock class WICBitmapLockGDIP : public IWICBitmapLock
{ {
public: public:
WICBitmapLockGDIP() : m_RefCount(0) {} WICBitmapLockGDIP();
Gdiplus::BitmapData* GetBitmapData() { return &m_BitmapData; }
// IUnknown // IUnknown
IFACEMETHOD(QueryInterface)(REFIID riid, void** ppvObject); IFACEMETHOD(QueryInterface)(REFIID riid, void** ppvObject);
@ -43,8 +45,6 @@ public:
IFACEMETHOD(GetDataPointer)(UINT* pcbBufferSize, BYTE** ppbData); IFACEMETHOD(GetDataPointer)(UINT* pcbBufferSize, BYTE** ppbData);
IFACEMETHOD(GetPixelFormat)(WICPixelFormatGUID* pPixelFormat); IFACEMETHOD(GetPixelFormat)(WICPixelFormatGUID* pPixelFormat);
Gdiplus::BitmapData* GetBitmapData() { return &m_BitmapData; }
private: private:
Gdiplus::BitmapData m_BitmapData; Gdiplus::BitmapData m_BitmapData;
UINT m_RefCount; UINT m_RefCount;