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.
*/
#ifndef RM_GFX_CANVASGDI_H_
#define RM_GFX_CANVASGDI_H_
#ifndef RM_GFX_CANVASGDIP_H_
#define RM_GFX_CANVASGDIP_H_
#include "Canvas.h"
#include "TextFormatGDIP.h"

View File

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

View File

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

View File

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