mirror of
https://github.com/encounter/SDL.git
synced 2025-12-17 08:57:01 +00:00
use SDL_zeroa at more places where the argument is an array.
This commit is contained in:
@@ -236,7 +236,7 @@ ProcessWindowEvent(_THIS, SDL_Window *sdlwin, DFBWindowEvent * evt)
|
||||
/* printf("Scancode %d %d %d\n", keysym.scancode, evt->key_code, evt->key_id); */
|
||||
SDL_SendKeyboardKey_ex(0, SDL_PRESSED, keysym.scancode);
|
||||
if (SDL_EventState(SDL_TEXTINPUT, SDL_QUERY)) {
|
||||
SDL_zero(text);
|
||||
SDL_zeroa(text);
|
||||
UnicodeToUtf8(unicode, text);
|
||||
if (*text) {
|
||||
SDL_SendKeyboardText_ex(0, text);
|
||||
@@ -372,7 +372,7 @@ ProcessInputEvent(_THIS, DFBInputEvent * ievt)
|
||||
/* printf("Scancode %d %d %d\n", keysym.scancode, evt->key_code, evt->key_id); */
|
||||
SDL_SendKeyboardKey_ex(kbd_idx, SDL_PRESSED, keysym.scancode);
|
||||
if (SDL_EventState(SDL_TEXTINPUT, SDL_QUERY)) {
|
||||
SDL_zero(text);
|
||||
SDL_zeroa(text);
|
||||
UnicodeToUtf8(unicode, text);
|
||||
if (*text) {
|
||||
SDL_SendKeyboardText_ex(kbd_idx, text);
|
||||
|
||||
@@ -54,7 +54,7 @@ WIN_UpdateDisplayMode(_THIS, LPCTSTR deviceName, DWORD index, SDL_DisplayMode *
|
||||
mode->w = logical_width;
|
||||
mode->h = logical_height;
|
||||
|
||||
SDL_zero(bmi_data);
|
||||
SDL_zeroa(bmi_data);
|
||||
bmi = (LPBITMAPINFO) bmi_data;
|
||||
bmi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
|
||||
|
||||
|
||||
@@ -898,7 +898,7 @@ X11_DispatchEvent(_THIS)
|
||||
}
|
||||
#endif
|
||||
/* */
|
||||
SDL_zero(text);
|
||||
SDL_zeroa(text);
|
||||
#ifdef X_HAVE_UTF8_STRING
|
||||
if (data->ic) {
|
||||
X11_Xutf8LookupString(data->ic, &xevent.xkey, text, sizeof(text),
|
||||
|
||||
@@ -48,7 +48,7 @@ X11_CreateEmptyCursor()
|
||||
XColor color;
|
||||
Pixmap pixmap;
|
||||
|
||||
SDL_zero(data);
|
||||
SDL_zeroa(data);
|
||||
color.red = color.green = color.blue = 0;
|
||||
pixmap = X11_XCreateBitmapFromData(display, DefaultRootWindow(display),
|
||||
data, 1, 1);
|
||||
|
||||
Reference in New Issue
Block a user