format
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@478 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
49ddd969a7
commit
5b375aa181
2 changed files with 7 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue