reimpl get color buffer func

just in case
This commit is contained in:
Bigfoot71 2025-04-23 16:06:39 +02:00
parent 2a7ecf5237
commit dce242435c

9
src/external/rlsw.h vendored
View File

@ -454,6 +454,7 @@ void swClose(void);
bool swResizeFramebuffer(int w, int h);
void swCopyFramebuffer(int x, int y, int w, int h, SWformat format, SWtype type, void* pixels);
void* swGetColorBuffer(int* w, int* h);
void swEnable(SWstate state);
void swDisable(SWstate state);
@ -3211,6 +3212,14 @@ void swCopyFramebuffer(int x, int y, int w, int h, SWformat format, SWtype type,
}
}
void* swGetColorBuffer(int* w, int* h)
{
if (w) *w = RLSW.framebuffer.width;
if (h) *h = RLSW.framebuffer.height;
return RLSW.framebuffer.color;
}
void swEnable(SWstate state)
{
switch (state) {