mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
[Screen Ruler] Close on left click and attribution adjustment (#20163)
* [Screen Ruler] end measure mode sessions on left click * [Screen Ruler] move attribution to a separate section * spelling
This commit is contained in:
@@ -38,9 +38,6 @@ LRESULT CALLBACK BoundsToolWndProc(HWND window, UINT message, WPARAM wparam, LPA
|
||||
}
|
||||
case WM_CURSOR_LEFT_MONITOR:
|
||||
{
|
||||
for (; ShowCursor(true) < 0;)
|
||||
;
|
||||
|
||||
auto toolState = GetWindowParam<BoundsToolState*>(window);
|
||||
if (!toolState)
|
||||
break;
|
||||
|
||||
@@ -103,6 +103,7 @@ LRESULT CALLBACK MeasureToolWndProc(HWND window, UINT message, WPARAM wparam, LP
|
||||
SetClipBoardToText(text.buffer);
|
||||
}); });
|
||||
}
|
||||
PostMessageW(window, WM_CLOSE, {}, {});
|
||||
break;
|
||||
case WM_MOUSEWHEEL:
|
||||
if (auto state = GetWindowParam<Serialized<MeasureToolState>*>(window))
|
||||
|
||||
@@ -16,10 +16,10 @@ struct OpacityEffect : winrt::implements<OpacityEffect, IDrawingEffect>
|
||||
|
||||
struct PerGlyphOpacityTextRender : winrt::implements<PerGlyphOpacityTextRender, IDWriteTextRenderer>
|
||||
{
|
||||
ID2D1Factory * _pD2DFactory = nullptr;
|
||||
ID2D1Factory* _pD2DFactory = nullptr;
|
||||
ID2D1HwndRenderTarget* _rt = nullptr;
|
||||
ID2D1SolidColorBrush* _baseBrush = nullptr;
|
||||
|
||||
|
||||
PerGlyphOpacityTextRender(
|
||||
wil::com_ptr<ID2D1Factory> pD2DFactory,
|
||||
wil::com_ptr<ID2D1HwndRenderTarget> rt,
|
||||
|
||||
Reference in New Issue
Block a user