color
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-05-21 10:56:12 +09:00
commit 2e2833f57b
6 changed files with 844 additions and 4712 deletions

File diff suppressed because it is too large Load diff

View file

@ -18,7 +18,7 @@
MwLLEndDraw(handle->lowlevel); \
}
static void MWAPI MwVaListApply_Internal(MwWidget handle, va_list va, int only_early);
static void MWAPI MwVaListApply_Internal(MwWidget handle, va_list va, int only_early);
static MwWidget MWAPI MwCreateWidget_Internal(MwClass widget_class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height, int do_prop, va_list prop);
static void lldrawhandler(MwLL handle, void* data) {
@ -998,6 +998,8 @@ int MwLibraryInit(void) {
NULL};
int i;
MwColorTableInit();
MwFLSetup();
for(i = 0; calls[i] != NULL; i++) {

View file

@ -319,8 +319,8 @@ static void draw_normal(MwWidget handle) {
MwLLColor text = MwParseColor(handle, MwGetText(handle, MwNforeground));
MwLLColor shadow = MwLightenColor(handle, base, MwDefaultShadow, MwDefaultShadow, MwDefaultShadow);
int align;
const char* str = MwGetText(handle, MwNtext);
MwLLPixmap bgpx = MwGetVoid(handle, MwNbackgroundPixmap);
const char* str = MwGetText(handle, MwNtext);
MwLLPixmap bgpx = MwGetVoid(handle, MwNbackgroundPixmap);
if(str == NULL) str = "";

View file

@ -239,7 +239,7 @@ static int wcreate(MwWidget handle) {
EGLDisplay display;
waylandopengl_t* o = r = malloc(sizeof(*o));
int gbm_format = 0;
EGLConfig egl_configs[1024];
EGLConfig egl_configs[1024];
memset(o, 0, sizeof(waylandopengl_t));
o->gllib = MwDynamicOpen("libEGL.so");
@ -346,7 +346,7 @@ static int wcreate(MwWidget handle) {
} else {
if(gbm_format == GBM_FORMAT_ARGB8888) {
o->egl_config = egl_configs[i];
break;
break;
}
}
}
@ -513,8 +513,8 @@ static void mwOpenGLSwapBufferImpl(MwWidget handle) {
#ifdef USE_WAYLAND
if(handle->lowlevel->common.type == MwLLBackendWayland) {
waylandopengl_t* o = handle->internal;
struct gbm_bo* bo;
eglSwapInterval(o->egl_display, 0);
struct gbm_bo* bo;
eglSwapInterval(o->egl_display, 0);
if(!eglSwapBuffers(o->egl_display, o->egl_surface)) {
printf("ERROR: eglSwapBuffers, %0X\n", eglGetError());
}