fix pixmap leak
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@82 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
e74b80da50
commit
8ea2d4a50a
15 changed files with 9440 additions and 1337 deletions
16
examples/image.c
Normal file
16
examples/image.c
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/* $Id$ */
|
||||
#include <Mw/Milsko.h>
|
||||
|
||||
int main() {
|
||||
MwWidget window = MwVaCreateWidget(MwWindowClass, "window", NULL, 0, 0, 500, 500,
|
||||
MwNtitle, "image button",
|
||||
NULL);
|
||||
MwWidget button = MwCreateWidget(MwButtonClass, "button", window, 50, 50, 400, 400);
|
||||
MwLLPixmap px = MwLoadImage(button, "examples/picture.png");
|
||||
|
||||
MwVaApply(button,
|
||||
MwNpixmap, px,
|
||||
NULL);
|
||||
|
||||
MwLoop(window);
|
||||
}
|
||||
BIN
examples/picture.png
Normal file
BIN
examples/picture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Loading…
Add table
Add a link
Reference in a new issue