mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 00:50:53 +00:00
fix size and image
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@579 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -10,11 +10,11 @@ int main() {
|
||||
MwWidget image3 = MwCreateWidget(MwImageClass, "image", window, 250, 250, 200, 200);
|
||||
MwLLPixmap px = MwLoadImage(window, "examples/picture.png");
|
||||
MwLLPixmap px2 = MwLoadImage(window, "examples/picture.jpg");
|
||||
MwLLPixmap px3 = MwLoadImage(window, "resource/logo.png");
|
||||
MwLLPixmap px3 = MwLoadImage(window, "resource/logo/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(px3 == NULL) px3 = MwLoadImage(window, "../resource/logo/logo.png");
|
||||
|
||||
MwVaApply(window,
|
||||
MwNiconPixmap, px,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#define PICKER_SIZE 360
|
||||
#define IMG_POS_X(w) ((w - PICKER_SIZE) / 2)
|
||||
#define IMG_POS_Y(h) ((h - PICKER_SIZE) / 2)
|
||||
#define SCROLL_BAR_WIDTH 12
|
||||
#define SCROLL_BAR_WIDTH 16
|
||||
#define MARGIN (PICKER_SIZE / 32)
|
||||
#define COLOR_DISPLAY_HEIGHT 12
|
||||
|
||||
|
||||
Reference in New Issue
Block a user