sabijdsads

This commit is contained in:
meowtech 2026-03-30 17:31:03 +00:00
parent b4703792c1
commit 6ff7405d31
11 changed files with 22 additions and 13 deletions

View File

@ -22,7 +22,7 @@
#ifndef ALUTIL_H #ifndef ALUTIL_H
#define ALUTIL_H #define ALUTIL_H
#include <al.h> #include <AL/al.h>
#include <SDL3/SDL_audio.h> #include <SDL3/SDL_audio.h>
#include <assert.h> #include <assert.h>

View File

@ -74,7 +74,8 @@ struct ALStream
uint64_t procFrames; uint64_t procFrames;
AL::Buffer::ID lastBuf; AL::Buffer::ID lastBuf;
SDL_IOStream srcOps; // made it pointer, idk if its right. never worked with SDL
SDL_IOStream* srcOps;
struct struct
{ {

View File

@ -92,7 +92,7 @@ struct BitmapPrivate
* getPixel calls. Is invalidated any time the bitmap * getPixel calls. Is invalidated any time the bitmap
* is modified */ * is modified */
SDL_Surface *surface; SDL_Surface *surface;
SDL_PixelFormat *format; SDL_PixelFormatDetails *format;
/* The 'tainted' area describes which parts of the /* The 'tainted' area describes which parts of the
* bitmap are not cleared, ie. don't have 0 opacity. * bitmap are not cleared, ie. don't have 0 opacity.

View File

@ -26,6 +26,7 @@
#include "etc-internal.h" #include "etc-internal.h"
#include "etc.h" #include "etc.h"
// #include <sigc++/signal.h>
#include <sigc++/signal.h> #include <sigc++/signal.h>
class Font; class Font;

View File

@ -28,8 +28,11 @@
#include "graphics.h" #include "graphics.h"
#include <assert.h> #include <assert.h>
#include <sigc++/signal.h> #include <sigc++/signal.h>
// #include <sigc++2.0/sigc++/signal.h>
#include <sigc++/connection.h> #include <sigc++/connection.h>
// #include <sigc++2.0/sigc++/connection.h>
class Disposable class Disposable
{ {

View File

@ -24,7 +24,8 @@
#include "serial-util.h" #include "serial-util.h"
#include "exception.h" #include "exception.h"
#include <SDL3/SDL_types.h> // this file doesn't exist, idk what to do if it, so i'll comment it.
// #include <SDL3/SDL_types.h>
#include <SDL3/SDL_pixels.h> #include <SDL3/SDL_pixels.h>
Color::Color(double red, double green, double blue, double alpha) Color::Color(double red, double green, double blue, double alpha)

View File

@ -22,7 +22,7 @@
#ifndef ETC_H #ifndef ETC_H
#define ETC_H #define ETC_H
#include <sigc++/signal.h> #include <sigc++-2.0/sigc++/signal.h>
#include "serializable.h" #include "serializable.h"
#include "etc-internal.h" #include "etc-internal.h"

View File

@ -30,8 +30,10 @@
#include <SDL3/SDL_touch.h> #include <SDL3/SDL_touch.h>
#include <SDL3/SDL_rect.h> #include <SDL3/SDL_rect.h>
#include <al.h> // #include <al.h>
#include <alc.h> #include <AL/al.h>
// #include <alc.h>
#include <AL/alc.h>
#include "sharedstate.h" #include "sharedstate.h"
#include "graphics.h" #include "graphics.h"
@ -123,7 +125,7 @@ void EventThread::process(RGSSThreadData &rtData)
// XXX this function breaks input focus on OSX // XXX this function breaks input focus on OSX
#ifndef __APPLE__ #ifndef __APPLE__
SDL_SetEventFilter(eventFilter, &rtData); SDL_SetEventFilter(eventFilter, (void*)&rtData);
#endif #endif
fullscreen = rtData.config.fullscreen; fullscreen = rtData.config.fullscreen;
@ -541,7 +543,7 @@ void EventThread::process(RGSSThreadData &rtData)
delete sMenu; delete sMenu;
} }
int EventThread::eventFilter(void *data, SDL_Event *event) bool EventThread::eventFilter(void *data, SDL_Event *event)
{ {
RGSSThreadData &rtData = *static_cast<RGSSThreadData*>(data); RGSSThreadData &rtData = *static_cast<RGSSThreadData*>(data);

View File

@ -110,7 +110,7 @@ public:
void notifyGameScreenChange(const SDL_Rect &screen); void notifyGameScreenChange(const SDL_Rect &screen);
private: private:
static int eventFilter(void *, SDL_Event*); static bool eventFilter(void *, SDL_Event*);
void resetInputStates(); void resetInputStates();
void setFullscreen(SDL_Window *, bool mode); void setFullscreen(SDL_Window *, bool mode);

View File

@ -143,12 +143,12 @@ static PHYSFS_Io *createSDLRWIo(const char *filename)
return io; return io;
} }
static inline PHYSFS_File *sdlPHYS(SDL_IOStream *ops) static inline PHYSFS_File *sdlPHYS(SDL_RWops *ops)
{ {
return static_cast<PHYSFS_File*>(ops->hidden.unknown.data1); return static_cast<PHYSFS_File*>(ops->hidden.unknown.data1);
} }
static Sint64 SDL_RWopsSize(SDL_IOStream *ops) static Sint64 SDL_RWopsSize(SDL_RWops *ops)
{ {
PHYSFS_File *f = sdlPHYS(ops); PHYSFS_File *f = sdlPHYS(ops);

View File

@ -22,7 +22,8 @@
#ifndef SHAREDSTATE_H #ifndef SHAREDSTATE_H
#define SHAREDSTATE_H #define SHAREDSTATE_H
#include <sigc++/signal.h> // #include <sigc++/signal.h>
#include <sigc++-2.0/sigc++/signal.h>
#define shState SharedState::instance #define shState SharedState::instance
#define glState shState->_glState() #define glState shState->_glState()