gfxhook: Fix some clang-tidy warnings

This commit is contained in:
2021-12-21 23:54:29 -05:00
parent 494b3d684b
commit dc715baa55
8 changed files with 12 additions and 24 deletions

View File

@ -1,7 +1,5 @@
#include <windows.h>
#include <stdbool.h>
#include "gfxhook/util.h"
#include "util/dprintf.h"
@ -16,7 +14,7 @@ void gfx_util_ensure_win_visible(HWND hwnd)
ShowWindow(hwnd, SW_RESTORE);
}
void gfx_util_borderless_fullscreen_windowed(HWND hwnd, LONG width, LONG height)
void gfx_util_borderless_fullscreen_windowed(HWND hwnd, UINT width, UINT height)
{
BOOL ok;
HRESULT hr;
@ -31,8 +29,8 @@ void gfx_util_borderless_fullscreen_windowed(HWND hwnd, LONG width, LONG height)
HWND_TOP,
0,
0,
width,
height,
(int) width,
(int) height,
SWP_FRAMECHANGED | SWP_NOSENDCHANGING);
if (!ok) {