2
0
mirror of https://github.com/arnavbhatt288/sdl-2.30.3-kolibri.git synced 2025-01-17 17:32:05 +01:00

more trivial changes

Signed-off-by: Arnav Bhatt <arnav@ghativega.in>
This commit is contained in:
Arnav Bhatt 2024-06-20 03:16:59 +05:30
parent 50983eac06
commit a49fd2dd2d
No known key found for this signature in database
GPG Key ID: 2F49C4D36103865D
4 changed files with 11 additions and 11 deletions

View File

@ -208,7 +208,7 @@ static SDL_Keycode sdlkeys_e0[0x80] = {
0,
};
static SDL_Keymod SDL_KOLIBRI_get_mod_state(void)
static SDL_Keymod KOLIBRI_get_mod_state(void)
{
unsigned controlstate = _ksys_get_control_key_state();
SDL_Keymod res = 0;
@ -276,7 +276,7 @@ void KOLIBRI_PumpEvents(_THIS)
break;
}
mod = SDL_KOLIBRI_get_mod_state();
mod = KOLIBRI_get_mod_state();
if (ext_code == 0xE1)
mod &= ~KMOD_CTRL;
if (!(scancode & 0x80))

View File

@ -19,7 +19,7 @@ void FreeOldFramebuffer(SDL_Window *window)
SDL_FreeSurface(data->surface);
}
int SDL_KOLIBRI_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
int KOLIBRI_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
{
SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
SDL_Surface *surface;
@ -52,7 +52,7 @@ int SDL_KOLIBRI_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *forma
return 0;
}
int SDL_KOLIBRI_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
int KOLIBRI_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
{
SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
SDL_Surface *surface;
@ -67,7 +67,7 @@ int SDL_KOLIBRI_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rec
_ksys_draw_bitmap(surface->pixels, 0, 0, surface->w, surface->h);
}
void SDL_KOLIBRI_DestroyWindowFramebuffer(_THIS, SDL_Window *window)
void KOLIBRI_DestroyWindowFramebuffer(_THIS, SDL_Window *window)
{
SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
SDL_Surface *surface;

View File

@ -4,8 +4,8 @@
#ifndef SDL_kolibriframebuffer_h_
#define SDL_kolibriframebuffer_h_
extern int SDL_KOLIBRI_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch);
extern int SDL_KOLIBRI_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects);
extern void SDL_KOLIBRI_DestroyWindowFramebuffer(_THIS, SDL_Window *window);
extern int KOLIBRI_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch);
extern int KOLIBRI_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects);
extern void KOLIBRI_DestroyWindowFramebuffer(_THIS, SDL_Window *window);
#endif

View File

@ -87,9 +87,9 @@ static SDL_VideoDevice *KOLIBRI_CreateDevice(void)
device->free = KOLIBRI_DeleteDevice;
/* Framebuffer */
device->CreateWindowFramebuffer = SDL_KOLIBRI_CreateWindowFramebuffer;
device->UpdateWindowFramebuffer = SDL_KOLIBRI_UpdateWindowFramebuffer;
device->DestroyWindowFramebuffer = SDL_KOLIBRI_DestroyWindowFramebuffer;
device->CreateWindowFramebuffer = KOLIBRI_CreateWindowFramebuffer;
device->UpdateWindowFramebuffer = KOLIBRI_UpdateWindowFramebuffer;
device->DestroyWindowFramebuffer = KOLIBRI_DestroyWindowFramebuffer;
/* "Window" */
device->CreateSDLWindow = KOLIBRI_CreateWindow;