mirror of https://github.com/encounter/SDL.git
Remove unneeded semicolon
This commit is contained in:
parent
60c6cd554d
commit
ddad901c0d
|
@ -406,7 +406,7 @@ SDL_LogEvent(const SDL_Event *event)
|
||||||
SDL_snprintf(details, sizeof (details), " (timestamp=%u touchid=%"SDL_PRIs64" gestureid=%"SDL_PRIs64" numfingers=%u error=%f x=%f y=%f)", \
|
SDL_snprintf(details, sizeof (details), " (timestamp=%u touchid=%"SDL_PRIs64" gestureid=%"SDL_PRIs64" numfingers=%u error=%f x=%f y=%f)", \
|
||||||
(uint) event->dgesture.timestamp, (long long)event->dgesture.touchId, \
|
(uint) event->dgesture.timestamp, (long long)event->dgesture.touchId, \
|
||||||
(long long)event->dgesture.gestureId, (uint) event->dgesture.numFingers, \
|
(long long)event->dgesture.gestureId, (uint) event->dgesture.numFingers, \
|
||||||
event->dgesture.error, event->dgesture.x, event->dgesture.y);
|
event->dgesture.error, event->dgesture.x, event->dgesture.y)
|
||||||
SDL_EVENT_CASE(SDL_DOLLARGESTURE) PRINT_DOLLAR_EVENT(event); break;
|
SDL_EVENT_CASE(SDL_DOLLARGESTURE) PRINT_DOLLAR_EVENT(event); break;
|
||||||
SDL_EVENT_CASE(SDL_DOLLARRECORD) PRINT_DOLLAR_EVENT(event); break;
|
SDL_EVENT_CASE(SDL_DOLLARRECORD) PRINT_DOLLAR_EVENT(event); break;
|
||||||
#undef PRINT_DOLLAR_EVENT
|
#undef PRINT_DOLLAR_EVENT
|
||||||
|
@ -425,7 +425,7 @@ SDL_LogEvent(const SDL_Event *event)
|
||||||
SDL_EVENT_CASE(SDL_DROPCOMPLETE) PRINT_DROP_EVENT(event); break;
|
SDL_EVENT_CASE(SDL_DROPCOMPLETE) PRINT_DROP_EVENT(event); break;
|
||||||
#undef PRINT_DROP_EVENT
|
#undef PRINT_DROP_EVENT
|
||||||
|
|
||||||
#define PRINT_AUDIODEV_EVENT(event) SDL_snprintf(details, sizeof (details), " (timestamp=%u which=%u iscapture=%s)", (uint) event->adevice.timestamp, (uint) event->adevice.which, event->adevice.iscapture ? "true" : "false");
|
#define PRINT_AUDIODEV_EVENT(event) SDL_snprintf(details, sizeof (details), " (timestamp=%u which=%u iscapture=%s)", (uint) event->adevice.timestamp, (uint) event->adevice.which, event->adevice.iscapture ? "true" : "false")
|
||||||
SDL_EVENT_CASE(SDL_AUDIODEVICEADDED) PRINT_AUDIODEV_EVENT(event); break;
|
SDL_EVENT_CASE(SDL_AUDIODEVICEADDED) PRINT_AUDIODEV_EVENT(event); break;
|
||||||
SDL_EVENT_CASE(SDL_AUDIODEVICEREMOVED) PRINT_AUDIODEV_EVENT(event); break;
|
SDL_EVENT_CASE(SDL_AUDIODEVICEREMOVED) PRINT_AUDIODEV_EVENT(event); break;
|
||||||
#undef PRINT_AUDIODEV_EVENT
|
#undef PRINT_AUDIODEV_EVENT
|
||||||
|
|
|
@ -322,7 +322,7 @@ static int get_usage(uint8_t *report_descriptor, size_t size,
|
||||||
/* Can't ever happen since size_code is & 0x3 */
|
/* Can't ever happen since size_code is & 0x3 */
|
||||||
data_len = 0;
|
data_len = 0;
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
key_size = 1;
|
key_size = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,7 @@ static int uses_numbered_reports(__u8 *report_descriptor, __u32 size) {
|
||||||
/* Can't ever happen since size_code is & 0x3 */
|
/* Can't ever happen since size_code is & 0x3 */
|
||||||
data_len = 0;
|
data_len = 0;
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
key_size = 1;
|
key_size = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,10 @@
|
||||||
__attribute__((weak))
|
__attribute__((weak))
|
||||||
void reset_IOP() {
|
void reset_IOP() {
|
||||||
SifInitRpc(0);
|
SifInitRpc(0);
|
||||||
while(!SifIopReset(NULL, 0)){};
|
while(!SifIopReset(NULL, 0)) {
|
||||||
while(!SifIopSync()){};
|
}
|
||||||
|
while(!SifIopSync()){
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void prepare_IOP()
|
static void prepare_IOP()
|
||||||
|
|
|
@ -533,7 +533,7 @@ int SDL_SW_BlitTriangle(
|
||||||
|
|
||||||
if (is_uniform) {
|
if (is_uniform) {
|
||||||
// SDL_GetSurfaceColorMod(src, &r, &g, &b);
|
// SDL_GetSurfaceColorMod(src, &r, &g, &b);
|
||||||
has_modulation = c0.r != 255 || c0.g != 255 || c0.b != 255 || c0.a != 255;;
|
has_modulation = c0.r != 255 || c0.g != 255 || c0.b != 255 || c0.a != 255;
|
||||||
} else {
|
} else {
|
||||||
has_modulation = SDL_TRUE;
|
has_modulation = SDL_TRUE;
|
||||||
}
|
}
|
||||||
|
@ -759,7 +759,7 @@ SDL_BlitTriangle_Slow(SDL_BlitInfo *info,
|
||||||
Uint32 ckey = info->colorkey & rgbmask;
|
Uint32 ckey = info->colorkey & rgbmask;
|
||||||
|
|
||||||
Uint8 *dst_ptr = info->dst;
|
Uint8 *dst_ptr = info->dst;
|
||||||
int dst_pitch = info->dst_pitch;;
|
int dst_pitch = info->dst_pitch;
|
||||||
|
|
||||||
srcfmt_val = detect_format(src_fmt);
|
srcfmt_val = detect_format(src_fmt);
|
||||||
dstfmt_val = detect_format(dst_fmt);
|
dstfmt_val = detect_format(dst_fmt);
|
||||||
|
|
|
@ -3754,7 +3754,7 @@ SDL_GL_SetAttribute(SDL_GLattr attr, int value)
|
||||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
|
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
|
||||||
} else {
|
} else {
|
||||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, 0);
|
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, 0);
|
||||||
};
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_GL_CONTEXT_FLAGS:
|
case SDL_GL_CONTEXT_FLAGS:
|
||||||
if (value & ~(SDL_GL_CONTEXT_DEBUG_FLAG |
|
if (value & ~(SDL_GL_CONTEXT_DEBUG_FLAG |
|
||||||
|
|
|
@ -1634,7 +1634,6 @@ IME_RenderCandidateList(SDL_VideoData *videodata, HDC hdc)
|
||||||
(candcount * candborder * 2) +
|
(candcount * candborder * 2) +
|
||||||
(candcount * candpadding * 2) +
|
(candcount * candpadding * 2) +
|
||||||
((candcount - 1) * horzcandspacing);
|
((candcount - 1) * horzcandspacing);
|
||||||
;
|
|
||||||
|
|
||||||
for (i = 0; i < candcount; ++i)
|
for (i = 0; i < candcount; ++i)
|
||||||
size.cx += candsizes[i].cx;
|
size.cx += candsizes[i].cx;
|
||||||
|
|
|
@ -623,7 +623,7 @@ dump_monitor_info (MonitorInfo *info)
|
||||||
case RGB: s = "rgb"; break;
|
case RGB: s = "rgb"; break;
|
||||||
case OTHER_COLOR: s = "other color"; break;
|
case OTHER_COLOR: s = "other color"; break;
|
||||||
default: s = "unknown"; break;
|
default: s = "unknown"; break;
|
||||||
};
|
}
|
||||||
|
|
||||||
printf ("Color: %s\n", s);
|
printf ("Color: %s\n", s);
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,7 @@ main(int argc, char *argv[])
|
||||||
srand((unsigned int)time(NULL));
|
srand((unsigned int)time(NULL));
|
||||||
if(SDL_SetRelativeMouseMode(SDL_TRUE) < 0) {
|
if(SDL_SetRelativeMouseMode(SDL_TRUE) < 0) {
|
||||||
return 3;
|
return 3;
|
||||||
};
|
}
|
||||||
|
|
||||||
rect.x = DEFAULT_WINDOW_WIDTH / 2;
|
rect.x = DEFAULT_WINDOW_WIDTH / 2;
|
||||||
rect.y = DEFAULT_WINDOW_HEIGHT / 2;
|
rect.y = DEFAULT_WINDOW_HEIGHT / 2;
|
||||||
|
|
|
@ -261,7 +261,7 @@ screenshotwindow_cleanup_windowdc:
|
||||||
if(!ReleaseDC(hwnd, windowdc))
|
if(!ReleaseDC(hwnd, windowdc))
|
||||||
{
|
{
|
||||||
SDLTest_LogError("ReleaseDC() failed");
|
SDLTest_LogError("ReleaseDC() failed");
|
||||||
return_code = 0;;
|
return_code = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
screenshotwindow_cleanup_generic:
|
screenshotwindow_cleanup_generic:
|
||||||
|
|
Loading…
Reference in New Issue