mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
Cleanup
This commit is contained in:
parent
a67896ab2b
commit
57c00e7e26
@ -819,11 +819,11 @@ static LRESULT win32_menu_loop(HWND owner, WPARAM wparam)
|
|||||||
static LRESULT CALLBACK WndProcCommon(bool *quit, HWND hwnd, UINT message,
|
static LRESULT CALLBACK WndProcCommon(bool *quit, HWND hwnd, UINT message,
|
||||||
WPARAM wparam, LPARAM lparam)
|
WPARAM wparam, LPARAM lparam)
|
||||||
{
|
{
|
||||||
if (message == WM_NCLBUTTONDBLCLK)
|
|
||||||
doubleclick_on_titlebar = true;
|
|
||||||
|
|
||||||
switch (message)
|
switch (message)
|
||||||
{
|
{
|
||||||
|
case WM_NCLBUTTONDBLCLK:
|
||||||
|
doubleclick_on_titlebar = true;
|
||||||
|
break;
|
||||||
case WM_SYSCOMMAND:
|
case WM_SYSCOMMAND:
|
||||||
/* Prevent screensavers, etc, while running. */
|
/* Prevent screensavers, etc, while running. */
|
||||||
switch (wparam)
|
switch (wparam)
|
||||||
@ -970,11 +970,11 @@ LRESULT CALLBACK WndProcD3D(HWND hwnd, UINT message,
|
|||||||
LRESULT ret;
|
LRESULT ret;
|
||||||
bool quit = false;
|
bool quit = false;
|
||||||
|
|
||||||
if (message == WM_NCLBUTTONDBLCLK)
|
|
||||||
doubleclick_on_titlebar = true;
|
|
||||||
|
|
||||||
switch (message)
|
switch (message)
|
||||||
{
|
{
|
||||||
|
case WM_NCLBUTTONDBLCLK:
|
||||||
|
doubleclick_on_titlebar = true;
|
||||||
|
break;
|
||||||
case WM_DROPFILES:
|
case WM_DROPFILES:
|
||||||
case WM_SYSCOMMAND:
|
case WM_SYSCOMMAND:
|
||||||
case WM_CHAR:
|
case WM_CHAR:
|
||||||
@ -1029,11 +1029,12 @@ LRESULT CALLBACK WndProcGL(HWND hwnd, UINT message,
|
|||||||
LRESULT ret;
|
LRESULT ret;
|
||||||
bool quit = false;
|
bool quit = false;
|
||||||
|
|
||||||
if (message == WM_NCLBUTTONDBLCLK)
|
|
||||||
doubleclick_on_titlebar = true;
|
|
||||||
|
|
||||||
switch (message)
|
switch (message)
|
||||||
{
|
{
|
||||||
|
case WM_NCLBUTTONDBLCLK:
|
||||||
|
doubleclick_on_titlebar = true;
|
||||||
|
break;
|
||||||
case WM_DROPFILES:
|
case WM_DROPFILES:
|
||||||
case WM_SYSCOMMAND:
|
case WM_SYSCOMMAND:
|
||||||
case WM_CHAR:
|
case WM_CHAR:
|
||||||
@ -1081,11 +1082,11 @@ LRESULT CALLBACK WndProcGDI(HWND hwnd, UINT message,
|
|||||||
LRESULT ret;
|
LRESULT ret;
|
||||||
bool quit = false;
|
bool quit = false;
|
||||||
|
|
||||||
if (message == WM_NCLBUTTONDBLCLK)
|
|
||||||
doubleclick_on_titlebar = true;
|
|
||||||
|
|
||||||
switch (message)
|
switch (message)
|
||||||
{
|
{
|
||||||
|
case WM_NCLBUTTONDBLCLK:
|
||||||
|
doubleclick_on_titlebar = true;
|
||||||
|
break;
|
||||||
case WM_PAINT:
|
case WM_PAINT:
|
||||||
{
|
{
|
||||||
gdi_t *gdi = (gdi_t*)video_driver_get_ptr(false);
|
gdi_t *gdi = (gdi_t*)video_driver_get_ptr(false);
|
||||||
@ -1192,7 +1193,7 @@ bool win32_window_create(void *data, unsigned style,
|
|||||||
#if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0500 /* 2K */
|
#if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0500 /* 2K */
|
||||||
g_taskbar_message = RegisterWindowMessage("TaskbarButtonCreated");
|
g_taskbar_message = RegisterWindowMessage("TaskbarButtonCreated");
|
||||||
|
|
||||||
ZeroMemory(¬ification_filter, sizeof(notification_filter) );
|
memset(¬ification_filter, 0, sizeof(notification_filter));
|
||||||
notification_filter.dbcc_size = sizeof(DEV_BROADCAST_DEVICEINTERFACE);
|
notification_filter.dbcc_size = sizeof(DEV_BROADCAST_DEVICEINTERFACE);
|
||||||
notification_filter.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
|
notification_filter.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
|
||||||
notification_filter.dbcc_classguid = GUID_DEVINTERFACE_HID;
|
notification_filter.dbcc_classguid = GUID_DEVINTERFACE_HID;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user