mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Cosmetics
This commit is contained in:
parent
db427f58cf
commit
7f51273950
@ -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"
|
||||
|
@ -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>
|
||||
|
@ -21,6 +21,11 @@
|
||||
|
||||
namespace Gfx {
|
||||
|
||||
WICBitmapLockGDIP::WICBitmapLockGDIP() :
|
||||
m_RefCount(1)
|
||||
{
|
||||
}
|
||||
|
||||
IFACEMETHODIMP WICBitmapLockGDIP::QueryInterface(REFIID riid, void** ppvObject)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user