mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Gfx: Avoid clipping with D2D when not needed
This commit is contained in:
@ -86,8 +86,8 @@ private:
|
||||
bool BeginTargetDraw();
|
||||
void EndTargetDraw();
|
||||
|
||||
// Retrieves current GDI+ transform (if any) and converts to a D2D Matrix
|
||||
D2D1_MATRIX_3X2_F GetCurrentTransform();
|
||||
// Sets the |m_Target| transformation to be equal to that of |m_GdipGraphics|.
|
||||
void UpdateTargetTransform();
|
||||
|
||||
Microsoft::WRL::ComPtr<ID2D1RenderTarget> m_Target;
|
||||
Util::WICBitmapDIB m_Bitmap;
|
||||
@ -98,6 +98,9 @@ private:
|
||||
|
||||
bool m_TextAntiAliasing;
|
||||
|
||||
// |true| if PushAxisAlignedClip()/PopAxisAlignedClip() can be used.
|
||||
bool m_CanUseAxisAlignClip;
|
||||
|
||||
static UINT c_Instances;
|
||||
static Microsoft::WRL::ComPtr<ID2D1Factory1> c_D2DFactory;
|
||||
static Microsoft::WRL::ComPtr<IDWriteFactory1> c_DWFactory;
|
||||
|
Reference in New Issue
Block a user