Skip to content

Commit

Permalink
Use backported sdl3 transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
Speak2Erase committed Jul 5, 2024
1 parent ce32c41 commit 9349a95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions binding/osfm-screen-binding.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <SDL2/SDL.h>
#include "SDL_video.h"
#include "etc-internal.h"
#include "gl-fun.h"
#include "gl-util.h"
Expand Down Expand Up @@ -85,7 +84,7 @@ RB_METHOD(screenWindowInit) {
int w = NUM2INT(vw);
int h = NUM2INT(vh);

unsigned int flags = SDL_WINDOW_OPENGL | SDL_WINDOW_SKIP_TASKBAR | SDL_WINDOW_BORDERLESS;
unsigned int flags = SDL_WINDOW_OPENGL | SDL_WINDOW_SKIP_TASKBAR | SDL_WINDOW_BORDERLESS | SDL_WINDOW_TRANSPARENT;
if (!NIL_P(kwargs)) {
ID table[4] = {
rb_intern("borderless"),
Expand Down

0 comments on commit 9349a95

Please sign in to comment.