Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add border for not rounded corner #3

Open
jdp1024 opened this issue Jan 11, 2022 · 0 comments
Open

Add border for not rounded corner #3

jdp1024 opened this issue Jan 11, 2022 · 0 comments

Comments

@jdp1024
Copy link

jdp1024 commented Jan 11, 2022

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);
         }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant