From e98a566f3a3da32728180e4ee0cb23f243c16e14 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 13 Oct 2025 13:21:24 +0000 Subject: [PATCH] optimization git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@309 b9cfdab3-6d41-4d17-bbe4-086880011989 --- GNUmakefile | 2 ++ src/core.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 28a154e..7162dd5 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -13,6 +13,8 @@ LIBS = ifeq ($(DEBUG),1) CFLAGS += -g +else +CFLAGS += -O2 endif ifeq ($(VULKAN_NO_STRING_HELPER),1) diff --git a/src/core.c b/src/core.c index db616ce..c18958f 100644 --- a/src/core.c +++ b/src/core.c @@ -102,6 +102,8 @@ MwWidget MwCreateWidget(MwClass widget_class, const char* name, MwWidget parent, free(h); return NULL; } + } else { + h->lowlevel = NULL; } h->widget_class = widget_class; h->pressed = 0;