17#include <emscripten/emscripten.h>
79 switch (
surface->format->BitsPerPixel) {
110 for (col=0; col<32; ++col) {
178 emscripten_cancel_main_loop();
187 const char *color_cursor =
NULL;
197 for (
i = 1;
i < argc;) {
202 color_cursor = argv[
i];
228 SDL_Log(
"Error, couldn't create cursor\n");
234 SDL_Log(
"Error, couldn't create system cursor %d\n",
i);
243 emscripten_set_main_loop(
loop, 0, 1);
#define SDL_RenderPresent
#define SDL_SetRenderDrawColor
#define SDL_CreateSystemCursor
#define SDL_LogSetPriority
#define SDL_CreateColorCursor
int uint32_t uint32_t uint32_t uint32_t uint32_t int drmModeModeInfoPtr mode int uint32_t uint32_t uint32_t uint32_t int32_t hot_x
@ SDL_LOG_CATEGORY_APPLICATION
SDL_SystemCursor
Cursor types for SDL_CreateSystemCursor().
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define SDL_arraysize(array)
#define SDL_LoadBMP(file)
void SDLTest_CommonQuit(SDLTest_CommonState *state)
Close test window.
SDLTest_CommonState * SDLTest_CommonCreateState(char **argv, Uint32 flags)
Parse command line parameters and create common state.
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
Common event handler for test windows.
int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
Process one common argument.
SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
Open test window.
void SDLTest_CommonLogUsage(SDLTest_CommonState *state, const char *argv0, const char **options)
Logs command line usage info.
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
A collection of pixels used in software blitting.
SDL_Renderer ** renderers
static SDL_Renderer * renderer
int main(int argc, char *argv[])
static int current_cursor
static const char * arrow[]
static SDL_Cursor * init_color_cursor(const char *file)
static SDL_Cursor * init_system_cursor(const char *image[])
static SDL_Cursor * cursors[1+SDL_NUM_SYSTEM_CURSORS]
static SDLTest_CommonState * state