Skip to content

Commit 23a5ff3

Browse files
committed
http://www.tomozon.sakura.ne.jp/wince/WinCE/download/MMascot/1.4/MMascot-1.4-src.zip
0 parents  commit 23a5ff3

File tree

15 files changed

+2928
-0
lines changed

15 files changed

+2928
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*Dbg/
2+
/*Rel/
3+
/*.vcb
4+
/*.vcl
5+
/*.vco
6+
/*.aps
7+
/*.plg
8+
/*.opt
9+
/*.ncb

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2001 上野智弘
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

MMascot.h

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
extern HINSTANCE ghInst;
2+
extern HWND ghWnd;
3+
extern HWND ghWndCB;
4+
5+
#define PIC_WIDTH_MAX 800
6+
#define PIC_HEIGHT_MAX 600
7+
8+
extern int bitspixel;
9+
10+
typedef struct {
11+
BITMAPINFOHEADER bmih ;
12+
RGBQUAD rgq[ 256 ] ;
13+
} BMI ;
14+
extern BMI bmi;
15+
extern BITMAPFILEHEADER BmpFH ;
16+
extern BITMAPINFOHEADER BmpIH ;
17+
18+
extern int winWidth,winHeight;
19+
extern int bmp_width,bmp_height,bmp_pixel;
20+
21+
extern TCHAR path[256];
22+
23+
typedef struct {
24+
BYTE *buf;
25+
TCHAR filename[64];
26+
int x,y;
27+
int xsize,ysize;
28+
int bitspixel;
29+
int *palette;
30+
int mask_color;
31+
BOOL mask_flag;
32+
} PIC_STRUCT;
33+
34+
typedef struct {
35+
TCHAR str[128];
36+
int x,y;
37+
int fontsize;
38+
int color;
39+
} MOJI_STRUCT;
40+
41+
typedef struct {
42+
int pic[10],mask[10];
43+
int str_num[10];
44+
int str[10][10];
45+
int interval1,interval2;
46+
} GROUP_STRUCT;
47+
48+
typedef struct {
49+
int group;
50+
BYTE week[7];
51+
BYTE month[12+1];
52+
BYTE day[31+1];
53+
BYTE hour[24];
54+
BYTE minute[60];
55+
BYTE second[60];
56+
} SCHEDULE_STRUCT;
57+
58+
extern void get_path(void);
59+
extern void load_core(PIC_STRUCT *,BOOL);
60+
extern void set_pixel(PIC_STRUCT *,int,int,int);
61+
extern void set_pixel_transparent(PIC_STRUCT *,int,int,int,int,int);
62+
extern int get_pixel(PIC_STRUCT *,int,int);
63+
extern int get_pixel_raw(PIC_STRUCT *,int,int);
64+
extern void get_display_depth(PIC_STRUCT *);
65+
66+
extern int raw_black,raw_white,black,white;
67+
68+
extern void save_hwnd(HWND);
69+
extern HWND load_hwnd(void);
70+
71+
extern BYTE *baseBuf;
72+
extern HDC baseDC; // オフスクリーン
73+
extern HDC tmp256DC; // オフスクリーン
74+
extern HBITMAP tmp256Bmp;
75+
extern BYTE *tmp256Buf;
76+
extern HDC NullDC;
77+
78+
extern PIC_STRUCT *pic,*mask;
79+
extern MOJI_STRUCT *moji;
80+
81+
enum {
82+
TRANS_100,TRANS_75,TRANS_50,TRANS_25,TRANS_HALF
83+
};
84+
85+
extern int max_pic,max_mask,max_string,*max_group,max_schedule;
86+

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Minute Mascot
2+
3+
![Minute Mascot](image.gif)
4+
5+
Minute Mascot displays a mascot charactor on your Windows CE device. You can easily make your own mascot data.
6+
7+
画面に、マスコットを表示します.......それだけです。データをユーザが作成することも可能です。
8+
9+
Official Readme: [JA](readme.txt) / [EN](readme-e.txt)
10+
11+
## License
12+
13+
This software is distributed here under the [MIT License](LICENSE), with the permission of the original author [Tomohiro Ueno](http://www.tomozon.sakura.ne.jp/wince/), expressed in the following e-mail reply.
14+
15+
本ソフトウェアは、作者である[上野智弘](http://www.tomozon.sakura.ne.jp/wince/)様から電子メールでの許諾を得た上で、[MIT License](LICENSE) の下で配布しています。以下に実際の文面を記します。
16+
17+
![Official Permit](permit.png)
18+
19+
```
20+
上野です。
21+
22+
修正、配布についてはご自由になさってください。
23+
ライセンスについては、OSS化で問題ありません。
24+
ライセンス形式は、このような古いソフトに対して商用利用して
25+
私的な利益を得ようとする人はもういないでしょうから
26+
私の公開しているプログラムはすべてライセンス放棄で良いです。
27+
28+
なお、JINZO Paint フルカラー版のソースファイルは遺失してしまっていて
29+
公開することができません。ご了承願います。
30+
31+
以上、よろしくお願いします。
32+
```

0 commit comments

Comments
 (0)