Skip to content
Permalink
Browse files

windows: Changed six internal functions to be static.

  • Loading branch information
philippwiesemann committed Apr 29, 2017
1 parent 89499a0 commit 444c47a1b89b6e775e20da22377acaa4ad65036e
Showing with 6 additions and 6 deletions.
  1. +5 −5 src/video/windows/SDL_windowsevents.c
  2. +1 −1 src/video/windows/SDL_windowsshape.c
@@ -204,7 +204,7 @@ WIN_ShouldIgnoreFocusClick()
return !SDL_GetHintBoolean(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, SDL_FALSE);
}

void
static void
WIN_CheckWParamMouseButton(SDL_bool bwParamMousePressed, SDL_bool bSDLMousePressed, SDL_WindowData *data, Uint8 button, SDL_MouseID mouseID)
{
if (data->focus_click_pending & SDL_BUTTON(button)) {
@@ -231,7 +231,7 @@ WIN_CheckWParamMouseButton(SDL_bool bwParamMousePressed, SDL_bool bSDLMousePress
* Some windows systems fail to send a WM_LBUTTONDOWN sometimes, but each mouse move contains the current button state also
* so this funciton reconciles our view of the world with the current buttons reported by windows
*/
void
static void
WIN_CheckWParamMouseButtons(WPARAM wParam, SDL_WindowData *data, SDL_MouseID mouseID)
{
if (wParam != data->mouse_button_flags) {
@@ -246,7 +246,7 @@ WIN_CheckWParamMouseButtons(WPARAM wParam, SDL_WindowData *data, SDL_MouseID mou
}


void
static void
WIN_CheckRawMouseButtons(ULONG rawButtons, SDL_WindowData *data)
{
if (rawButtons != data->mouse_button_flags) {
@@ -275,7 +275,7 @@ WIN_CheckRawMouseButtons(ULONG rawButtons, SDL_WindowData *data)
}
}

void
static void
WIN_CheckAsyncMouseRelease(SDL_WindowData *data)
{
Uint32 mouseFlags;
@@ -309,7 +309,7 @@ WIN_CheckAsyncMouseRelease(SDL_WindowData *data)
data->mouse_button_flags = 0;
}

BOOL
static BOOL
WIN_ConvertUTF32toUTF8(UINT32 codepoint, char * text)
{
if (codepoint <= 0x7F) {
@@ -45,7 +45,7 @@ Win32_CreateShaper(SDL_Window * window) {
return result;
}

void
static void
CombineRectRegions(SDL_ShapeTree* node,void* closure) {
HRGN mask_region = *((HRGN*)closure),temp_region = NULL;
if(node->kind == OpaqueShape) {

0 comments on commit 444c47a

Please sign in to comment.