From a49fd2dd2dc52f7d085afd99b03afa15de97276b Mon Sep 17 00:00:00 2001 From: Arnav Bhatt Date: Thu, 20 Jun 2024 03:16:59 +0530 Subject: [PATCH] more trivial changes Signed-off-by: Arnav Bhatt --- src/video/kolibri/SDL_kolibrievents.c | 4 ++-- src/video/kolibri/SDL_kolibriframebuffer.c | 6 +++--- src/video/kolibri/SDL_kolibriframebuffer.h | 6 +++--- src/video/kolibri/SDL_kolibrivideo.c | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/video/kolibri/SDL_kolibrievents.c b/src/video/kolibri/SDL_kolibrievents.c index 496b7f2..4f2ff81 100644 --- a/src/video/kolibri/SDL_kolibrievents.c +++ b/src/video/kolibri/SDL_kolibrievents.c @@ -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)) diff --git a/src/video/kolibri/SDL_kolibriframebuffer.c b/src/video/kolibri/SDL_kolibriframebuffer.c index 7bb1b49..6816362 100644 --- a/src/video/kolibri/SDL_kolibriframebuffer.c +++ b/src/video/kolibri/SDL_kolibriframebuffer.c @@ -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; diff --git a/src/video/kolibri/SDL_kolibriframebuffer.h b/src/video/kolibri/SDL_kolibriframebuffer.h index cdc42e5..e62385f 100644 --- a/src/video/kolibri/SDL_kolibriframebuffer.h +++ b/src/video/kolibri/SDL_kolibriframebuffer.h @@ -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 diff --git a/src/video/kolibri/SDL_kolibrivideo.c b/src/video/kolibri/SDL_kolibrivideo.c index c4d2415..2b2e4c5 100644 --- a/src/video/kolibri/SDL_kolibrivideo.c +++ b/src/video/kolibri/SDL_kolibrivideo.c @@ -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;