mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 06:21:09 +00:00
SDL_GetTrayEntries(): Rename parameter size to count
This commit is contained in:
committed by
Sam Lantinga
parent
b99e19c0a2
commit
68dabd48c4
@@ -285,15 +285,15 @@ SDL_TrayMenu *SDL_GetTraySubmenu(SDL_TrayEntry *entry)
|
||||
return entry->submenu;
|
||||
}
|
||||
|
||||
const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
|
||||
const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *count)
|
||||
{
|
||||
if (!menu) {
|
||||
SDL_InvalidParamError("menu");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (size) {
|
||||
*size = menu->nEntries;
|
||||
if (count) {
|
||||
*count = menu->nEntries;
|
||||
}
|
||||
return (const SDL_TrayEntry **)menu->entries;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ SDL_TrayMenu *SDL_GetTraySubmenu(SDL_TrayEntry *entry)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
|
||||
const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *count)
|
||||
{
|
||||
SDL_InvalidParamError("menu");
|
||||
return NULL;
|
||||
|
||||
@@ -540,15 +540,15 @@ SDL_TrayMenu *SDL_GetTraySubmenu(SDL_TrayEntry *entry)
|
||||
return entry->submenu;
|
||||
}
|
||||
|
||||
const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
|
||||
const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *count)
|
||||
{
|
||||
if (!menu) {
|
||||
SDL_InvalidParamError("menu");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (size) {
|
||||
*size = menu->nEntries;
|
||||
if (count) {
|
||||
*count = menu->nEntries;
|
||||
}
|
||||
return (const SDL_TrayEntry **)menu->entries;
|
||||
}
|
||||
|
||||
@@ -367,15 +367,15 @@ SDL_TrayMenu *SDL_GetTraySubmenu(SDL_TrayEntry *entry)
|
||||
return entry->submenu;
|
||||
}
|
||||
|
||||
const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
|
||||
const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *count)
|
||||
{
|
||||
if (!menu) {
|
||||
SDL_InvalidParamError("menu");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (size) {
|
||||
*size = menu->nEntries;
|
||||
if (count) {
|
||||
*count = menu->nEntries;
|
||||
}
|
||||
return (const SDL_TrayEntry **)menu->entries;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user