Skip to content

Add border for not rounded corner #3

Open
@jdp1024

Description

@jdp1024

Just a suggestion, to distingiush sws from the background content.

--- a\SimpleWindowSwitcher\sws_WindowSwitcher.c	2022-01-05 15:22:02.000000000 +0800
+++ b\SimpleWindowSwitcher\sws_WindowSwitcher.c	2022-01-05 15:22:51.000000000 +0800
@@ -661,12 +661,17 @@
             bi.bmiHeader.biPlanes = 1;
             bi.bmiHeader.biBitCount = 32;
             bi.bmiHeader.biCompression = BI_RGB;
             StretchDIBits(hdcPaint, 0, 0, siz.cx, siz.cy, 0, 0, 1, 1, &bkcol, &bi, DIB_RGB_COLORS, SRCCOPY);
         }
 
+        if (_this->dwCornerPreference == 1)
+        {
+			_sws_WindowSwitcher_DrawContour(_this, hdcPaint, rc, SWS_CONTOUR_INNER, 1, bkcol);
+        }
+
         // Draw highlight rectangle
         if (pWindowList)
         {
             _sws_WindowSwitcher_DrawContour(_this, hdcPaint, pWindowList[_this->layout.iIndex].rcWindow, SWS_CONTOUR_INNER, SWS_WINDOWSWITCHER_CONTOUR_SIZE, bkcol);
         }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions