mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-23 13:09:11 +00:00
Renamed n_mime_types to num_mime_types
This commit is contained in:
parent
a767952617
commit
b902b0527b
3 changed files with 6 additions and 5 deletions
|
@ -920,8 +920,8 @@ typedef struct SDL_ClipboardEvent
|
||||||
SDL_EventType type; /**< SDL_EVENT_CLIPBOARD_UPDATE */
|
SDL_EventType type; /**< SDL_EVENT_CLIPBOARD_UPDATE */
|
||||||
Uint32 reserved;
|
Uint32 reserved;
|
||||||
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
||||||
bool owner; /**< are we owning the clipboard (internal update) */
|
bool owner; /**< are we owning the clipboard (internal update) */
|
||||||
Sint32 n_mime_types; /**< number of mime types */
|
Sint32 num_mime_types; /**< number of mime types */
|
||||||
const char **mime_types; /**< current mime types */
|
const char **mime_types; /**< current mime types */
|
||||||
} SDL_ClipboardEvent;
|
} SDL_ClipboardEvent;
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,9 @@
|
||||||
|
|
||||||
#include "SDL_events_c.h"
|
#include "SDL_events_c.h"
|
||||||
#include "SDL_clipboardevents_c.h"
|
#include "SDL_clipboardevents_c.h"
|
||||||
|
#include "../video/SDL_clipboard_c.h"
|
||||||
|
|
||||||
void SDL_SendClipboardUpdate(bool owner, char **mime_types, size_t n_mime_types)
|
void SDL_SendClipboardUpdate(bool owner, char **mime_types, size_t num_mime_types)
|
||||||
{
|
{
|
||||||
if (SDL_EventEnabled(SDL_EVENT_CLIPBOARD_UPDATE)) {
|
if (SDL_EventEnabled(SDL_EVENT_CLIPBOARD_UPDATE)) {
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
@ -35,7 +36,7 @@ void SDL_SendClipboardUpdate(bool owner, char **mime_types, size_t n_mime_types)
|
||||||
cevent->timestamp = 0;
|
cevent->timestamp = 0;
|
||||||
cevent->owner = owner;
|
cevent->owner = owner;
|
||||||
cevent->mime_types = (const char **)mime_types;
|
cevent->mime_types = (const char **)mime_types;
|
||||||
cevent->n_mime_types = (Uint32)n_mime_types;
|
cevent->num_mime_types = (Uint32)num_mime_types;
|
||||||
SDL_PushEvent(&event);
|
SDL_PushEvent(&event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,6 @@
|
||||||
#ifndef SDL_clipboardevents_c_h_
|
#ifndef SDL_clipboardevents_c_h_
|
||||||
#define SDL_clipboardevents_c_h_
|
#define SDL_clipboardevents_c_h_
|
||||||
|
|
||||||
extern void SDL_SendClipboardUpdate(bool owner, char **mime_types, size_t n_mime_types);
|
extern void SDL_SendClipboardUpdate(bool owner, char **mime_types, size_t num_mime_types);
|
||||||
|
|
||||||
#endif // SDL_clipboardevents_c_h_
|
#endif // SDL_clipboardevents_c_h_
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue