Skip to content

Commit

Permalink
Remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 6, 2025
1 parent 19ddb29 commit 7c9f6c6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/video/windows/SDL_windowswindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,6 @@ bool WIN_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properties
WIN_ConstrainPopup(window, false);
WIN_AdjustWindowRectWithStyle(window, style, styleEx, FALSE, &x, &y, &w, &h, SDL_WINDOWRECT_FLOATING);

int gx, gy;
SDL_RelativeToGlobalForWindow(window, window->floating.x, window->floating.y, &gx, &gy);
SDL_Log("Create at: %i,%i (%i,%i)", gx, gy, x, y);
hwnd = CreateWindowEx(styleEx, SDL_Appname, TEXT(""), style,
x, y, w, h, parent, NULL, SDL_Instance, NULL);
if (!hwnd) {
Expand Down Expand Up @@ -1689,7 +1686,7 @@ void WIN_UpdateClipCursor(SDL_Window *window)
if (!GetClientScreenRect(data->hwnd, &client)) {
return;
}

RECT target = client;
if (lock_to_ctr) {
LONG cx = (client.left + client.right ) / 2;
Expand All @@ -1713,7 +1710,7 @@ void WIN_UpdateClipCursor(SDL_Window *window)
}
}

if (GetClipCursor(&client) &&
if (GetClipCursor(&client) &&
0 != SDL_memcmp(&target, &client, sizeof(client)) &&
ClipCursor(&target)) {
data->cursor_clipped_rect = target; // ClipCursor may fail if rect beyond screen
Expand Down

0 comments on commit 7c9f6c6

Please sign in to comment.