minor fixes for macOS
Minor fixes from merging the master (SDL1) branch: - KMOD_META in SDL1 is KMOD_GUI in SDL2. Changed. - loadfonts() requires additional arguments in the SDL2 branch. Added.
This commit is contained in:
parent
7b53d1583e
commit
ef70ddada6
2 changed files with 2 additions and 2 deletions
|
|
@ -1045,7 +1045,7 @@ static void loadfonts(SDL_Surface * screen, SDL_Texture * texture, SDL_Renderer
|
|||
homedirdir = malloc(snprintf(NULL, 0, "%s/fonts", apple_globalPreferencesPath()) + 1);
|
||||
if(homedirdir) {
|
||||
sprintf(homedirdir, "%s/fonts", apple_globalPreferencesPath());
|
||||
loadfonts(screen, homedirdir);
|
||||
loadfonts(screen, texture, renderer, homedirdir);
|
||||
free(homedirdir);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
#define __MACOS_H__
|
||||
|
||||
|
||||
#define KMOD_CTRL KMOD_META /* Anywhere Linux/Windows uses CTRL, use CMD on macOS */
|
||||
#define KMOD_CTRL KMOD_GUI /* Anywhere Linux/Windows uses CTRL, use CMD on macOS */
|
||||
|
||||
|
||||
void apple_init(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue