Skip to content

Commit

Permalink
Fixed some function calls again
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrsatrio committed Sep 1, 2024
1 parent 6abfd41 commit eea1e2a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SimpleWindowSwitcher/sws_IconPainter.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void sws_IconPainter_DrawIcon(HICON hIcon, HDC hDC, HBRUSH hBrush, void* pGdipGr
// Fallback to crappier drawing using GDI if GDI+ is unavailable
if (bShouldFillBackground)
{
DrawIconEx(hDC, x, y, hIcon, w, h, 0, NULL, hBrush, DI_NORMAL);
DrawIconEx(hDC, x, y, hIcon, w, h, 0, hBrush, DI_NORMAL);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion SimpleWindowSwitcher/sws_RegistryMonitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sws_error_t sws_RegistryMonitor_Notify(sws_RegistryMonitor* _this, DWORD dwWakeM
{
return sws_error_Report(sws_error_GetFromWin32Error(GetLastError()), NULL);
}
_this->callback(_this->ptr, TRUE, _this->buffer, _this->szBuffer);
_this->callback(_this->ptr);
lRes = RegNotifyChangeKeyValue(
_this->hKeyLM,
FALSE,
Expand Down
2 changes: 1 addition & 1 deletion SimpleWindowSwitcher/sws_WindowSwitcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,7 @@ static LRESULT _sws_WindowsSwitcher_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam,

if (wParam == HSHELL_WINDOWCREATED || wParam == HSHELL_WINDOWACTIVATED || wParam == HSHELL_RUDEAPPACTIVATED)
{
if (IsWindowVisible(_this->hWnd) && (HWND)lParam != _this->hWnd && sws_WindowHelpers_IsAltTabWindow(lParam))
if (IsWindowVisible(_this->hWnd) && (HWND)lParam != _this->hWnd && sws_WindowHelpers_IsAltTabWindow((HWND)lParam))
{
HDPA hdpa = DPA_Create(SWS_VECTOR_CAPACITY);
EnumWindows(sws_WindowHelpers_AddAltTabWindowsToTimeStampedHWNDList, hdpa);
Expand Down
4 changes: 3 additions & 1 deletion SimpleWindowSwitcher/sws_WindowSwitcherLayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

static BOOL CALLBACK _sws_WindowSwitcherLayout_EnumWindowsCallback(_In_ HWND hWnd, _In_ sws_WindowSwitcherLayout* _this)
{
if (sws_WindowHelpers_IsAltTabWindow(hWnd, _this->hWndWallpaper) || (_this->bIncludeWallpaper && !_this->bWallpaperAlwaysLast && hWnd == _this->hWndWallpaper))
if (sws_WindowHelpers_IsAltTabWindow(hWnd) || (_this->bIncludeWallpaper && !_this->bWallpaperAlwaysLast && hWnd == _this->hWndWallpaper))
{
sws_WindowSwitcherLayoutWindow swsLayoutWindow;
sws_WindowSwitcherLayoutWindow_Initialize(&swsLayoutWindow, hWnd, NULL);
Expand All @@ -24,6 +24,8 @@ sws_error_t sws_WindowSwitcherLayout_InvalidateLayout(sws_WindowSwitcherLayout*
{
sws_WindowSwitcherLayoutWindow_Erase(&(pWindowList[iCurrentWindow]));
}

return rv;
}

static inline unsigned int _sws_WindowSwitcherLayout_GetInitialLeft(sws_WindowSwitcherLayout* _this)
Expand Down

0 comments on commit eea1e2a

Please sign in to comment.