git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@478 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-23 17:05:53 +00:00
parent 49ddd969a7
commit 5b375aa181
2 changed files with 7 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ endif()
option(CLASSIC "Use classic theme" OFF) option(CLASSIC "Use classic theme" OFF)
option(USE_STB_IMAGE "Use stb_image" ON) option(USE_STB_IMAGE "Use stb_image" ON)
option(USE_STB_TRUETYPE "Use stb_truetype" ON) option(USE_STB_TRUETYPE "Use stb_truetype" ON)
option(BUILD_EXAMPLES "Build examples" OFF)
file( file(
GLOB GLOB
@@ -152,4 +153,6 @@ target_compile_definitions(
_MILSKO _MILSKO
) )
add_subdirectory(examples/basic) if(BUILD_EXAMPLES)
add_subdirectory(examples/basic)
endif()

View File

@@ -12,9 +12,9 @@ int main() {
MwLLPixmap px2 = MwLoadImage(window, "examples/picture.jpg"); MwLLPixmap px2 = MwLoadImage(window, "examples/picture.jpg");
MwLLPixmap px3 = MwLoadImage(window, "resource/logo.png"); MwLLPixmap px3 = MwLoadImage(window, "resource/logo.png");
if(px == NULL)px = MwLoadImage(window, "../examples/picture.png"); if(px == NULL) px = MwLoadImage(window, "../examples/picture.png");
if(px2 == NULL)px2 = MwLoadImage(window, "../examples/picture.jpg"); if(px2 == NULL) px2 = MwLoadImage(window, "../examples/picture.jpg");
if(px3 == NULL)px3 = MwLoadImage(window, "../resource/logo.png"); if(px3 == NULL) px3 = MwLoadImage(window, "../resource/logo.png");
MwVaApply(window, MwVaApply(window,
MwNiconPixmap, px, MwNiconPixmap, px,