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.
|
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"
|
||||||
|
@ -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>
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user