[AlwaysOnTop] Inaccurate border position fix (#16206)

This commit is contained in:
Seraphima Zykova
2022-02-10 20:24:29 +03:00
committed by GitHub
parent 8c64a0b6f8
commit ddcb065b22
5 changed files with 15 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ public:
void Show();
void Hide();
void SetBorderRect(RECT windowRect, COLORREF color, float thickness);
void SetBorderRect(RECT windowRect, COLORREF color, int thickness);
private:
bool CreateRenderTargets(const RECT& clientRect);
@@ -27,7 +27,7 @@ private:
{
D2D1_RECT_F rect;
D2D1_COLOR_F borderColor;
float thickness;
int thickness;
};
static ID2D1Factory* GetD2DFactory();