Skip to content

Commit

Permalink
MorphOS: update library
Browse files Browse the repository at this point in the history
  • Loading branch information
BeWorld2018 committed Oct 3, 2023
1 parent d4ea44c commit 57c0ff9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile.mos
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Makefile to build the SDL2 library MORPHOS
#
# You need tinygl.library 53.7 and last SDK with last tinyGL SDK
# You need tinygl.library 53.8 and last SDK with last tinyGL SDK

#
# Enable debug with -D__SDL_DEBUG
Expand Down
2 changes: 1 addition & 1 deletion sdl2-config
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ while test $# -gt 0; do
echo $exec_prefix
;;
--version)
echo 2.28.0
echo 2.28.4
;;
--cflags)
echo -noixemul -I${prefix}/include/SDL2
Expand Down
2 changes: 1 addition & 1 deletion src/core/morphos/SDL_mosversion.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define str(s) #s
#define xstr(s) str(s)
#define VERSION 53
#define REVISION 12
#define REVISION 13
#define VERSTAG "\0$VER: sdl2.library " xstr(VERSION) "." xstr(REVISION) " (" __AMIGADATE__ ") © Bruno Peloille, Szilárd Biró, Ilkka Lehtoranta"
6 changes: 5 additions & 1 deletion src/video/morphos/SDL_moswindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,11 @@ MOS_DestroyWindow(_THIS, SDL_Window * window)

if (data) {
SDL_VideoData *videodata = (SDL_VideoData *) data->videodata;


if (data->__tglContext) {
MOS_GL_DeleteContext(_this, data->__tglContext);
}

REMOVE(&data->node);

if (data->win) {
Expand Down
2 changes: 2 additions & 0 deletions test/controllermap.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,8 @@ int main(int argc, char *argv[])
return 2;
}

while (!done && SDL_NumJoysticks() == 0) {
SDL_Event event;

while (SDL_PollEvent(&event) > 0) {
switch (event.type) {
Expand Down

0 comments on commit 57c0ff9

Please sign in to comment.