mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 00:50:53 +00:00
format
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@478 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -15,6 +15,7 @@ endif()
|
||||
option(CLASSIC "Use classic theme" OFF)
|
||||
option(USE_STB_IMAGE "Use stb_image" ON)
|
||||
option(USE_STB_TRUETYPE "Use stb_truetype" ON)
|
||||
option(BUILD_EXAMPLES "Build examples" OFF)
|
||||
|
||||
file(
|
||||
GLOB
|
||||
@@ -152,4 +153,6 @@ target_compile_definitions(
|
||||
_MILSKO
|
||||
)
|
||||
|
||||
add_subdirectory(examples/basic)
|
||||
if(BUILD_EXAMPLES)
|
||||
add_subdirectory(examples/basic)
|
||||
endif()
|
||||
|
||||
@@ -12,9 +12,9 @@ int main() {
|
||||
MwLLPixmap px2 = MwLoadImage(window, "examples/picture.jpg");
|
||||
MwLLPixmap px3 = MwLoadImage(window, "resource/logo.png");
|
||||
|
||||
if(px == NULL)px = MwLoadImage(window, "../examples/picture.png");
|
||||
if(px2 == NULL)px2 = MwLoadImage(window, "../examples/picture.jpg");
|
||||
if(px3 == NULL)px3 = MwLoadImage(window, "../resource/logo.png");
|
||||
if(px == NULL) px = MwLoadImage(window, "../examples/picture.png");
|
||||
if(px2 == NULL) px2 = MwLoadImage(window, "../examples/picture.jpg");
|
||||
if(px3 == NULL) px3 = MwLoadImage(window, "../resource/logo.png");
|
||||
|
||||
MwVaApply(window,
|
||||
MwNiconPixmap, px,
|
||||
|
||||
Reference in New Issue
Block a user