Skip to content

Commit

Permalink
Change fullscreen function.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Oct 27, 2024
1 parent dc8b6d3 commit fa82624
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/media/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ libctrmedia.so: media.o
ld ${LDFLAGS} -lcurl -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -o libctrmedia.so media.o

media.o:
cc -D SDL -D LIBCURL -D FFI -I . -c media.c -I /usr/include/SDL -I ../../i18n/${ISO} -I i18n/${ISO} -Wall -Werror -fPIC -o media.o
cc -D SDL -D LIBCURL -D FFI $(EXTRACFLAGS) -I . -c media.c -I /usr/include/SDL -I ../../i18n/${ISO} -I i18n/${ISO} -Wall -Werror -fPIC -o media.o

clean:
rm -rf libctrmedia.so
Expand Down
2 changes: 1 addition & 1 deletion plugins/media/makefile.win64
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ libctrmedia.dll: media.o
$(CC) ${LDFLAGS} media.o -lffi -lcurl -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf ../../ctr${ISO}import.lib -o libctrmedia.dll

media.o:
$(CC) ${CFLAGS} -D SDL -D LIBCURL -D FFI -I /usr/x86_64-w64-mingw32/include -I /usr/include/SDL2 -I ../../i18n/${ISO} -I i18n/${ISO} -c media.c -Wall -Werror -fPIC -o media.o
$(CC) ${CFLAGS} -D SDL -D LIBCURL -D FFI $(EXTRACFLAGS) -I /usr/x86_64-w64-mingw32/include -I /usr/include/SDL2 -I ../../i18n/${ISO} -I i18n/${ISO} -c media.c -Wall -Werror -fPIC -o media.o

clean:
rm media.o
2 changes: 2 additions & 0 deletions plugins/media/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -3149,6 +3149,8 @@ void ctr_internal_media_init() {

#ifdef FULLSCREEN
CtrMediaWindow = SDL_CreateWindow("Citrine", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 100, 100, SDL_WINDOW_OPENGL | SDL_WINDOW_FULLSCREEN);
#elif DESKTOP_FULLSCREEN
CtrMediaWindow = SDL_CreateWindow("Citrine", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 100, 100, SDL_WINDOW_OPENGL | SDL_WINDOW_FULLSCREEN_DESKTOP);
#else
char* screen_mode = getenv("screenmode");
if (screen_mode && strcmp(screen_mode,"full")==0) {
Expand Down

0 comments on commit fa82624

Please sign in to comment.