Skip to content

Commit

Permalink
http://www.tomozon.sakura.ne.jp/wince/WinCE/download/MMascot/1.4/MMas…
Browse files Browse the repository at this point in the history
…cot-1.4-src.zip
  • Loading branch information
watamario15 committed Jun 15, 2024
0 parents commit 23a5ff3
Show file tree
Hide file tree
Showing 15 changed files with 2,928 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*Dbg/
/*Rel/
/*.vcb
/*.vcl
/*.vco
/*.aps
/*.plg
/*.opt
/*.ncb
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2001 上野智弘

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
86 changes: 86 additions & 0 deletions MMascot.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
extern HINSTANCE ghInst;
extern HWND ghWnd;
extern HWND ghWndCB;

#define PIC_WIDTH_MAX 800
#define PIC_HEIGHT_MAX 600

extern int bitspixel;

typedef struct {
BITMAPINFOHEADER bmih ;
RGBQUAD rgq[ 256 ] ;
} BMI ;
extern BMI bmi;
extern BITMAPFILEHEADER BmpFH ;
extern BITMAPINFOHEADER BmpIH ;

extern int winWidth,winHeight;
extern int bmp_width,bmp_height,bmp_pixel;

extern TCHAR path[256];

typedef struct {
BYTE *buf;
TCHAR filename[64];
int x,y;
int xsize,ysize;
int bitspixel;
int *palette;
int mask_color;
BOOL mask_flag;
} PIC_STRUCT;

typedef struct {
TCHAR str[128];
int x,y;
int fontsize;
int color;
} MOJI_STRUCT;

typedef struct {
int pic[10],mask[10];
int str_num[10];
int str[10][10];
int interval1,interval2;
} GROUP_STRUCT;

typedef struct {
int group;
BYTE week[7];
BYTE month[12+1];
BYTE day[31+1];
BYTE hour[24];
BYTE minute[60];
BYTE second[60];
} SCHEDULE_STRUCT;

extern void get_path(void);
extern void load_core(PIC_STRUCT *,BOOL);
extern void set_pixel(PIC_STRUCT *,int,int,int);
extern void set_pixel_transparent(PIC_STRUCT *,int,int,int,int,int);
extern int get_pixel(PIC_STRUCT *,int,int);
extern int get_pixel_raw(PIC_STRUCT *,int,int);
extern void get_display_depth(PIC_STRUCT *);

extern int raw_black,raw_white,black,white;

extern void save_hwnd(HWND);
extern HWND load_hwnd(void);

extern BYTE *baseBuf;
extern HDC baseDC; // オフスクリーン
extern HDC tmp256DC; // オフスクリーン
extern HBITMAP tmp256Bmp;
extern BYTE *tmp256Buf;
extern HDC NullDC;

extern PIC_STRUCT *pic,*mask;
extern MOJI_STRUCT *moji;

enum {
TRANS_100,TRANS_75,TRANS_50,TRANS_25,TRANS_HALF
};

extern int max_pic,max_mask,max_string,*max_group,max_schedule;

32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Minute Mascot

![Minute Mascot](image.gif)

Minute Mascot displays a mascot charactor on your Windows CE device. You can easily make your own mascot data.

画面に、マスコットを表示します.......それだけです。データをユーザが作成することも可能です。

Official Readme: [JA](readme.txt) / [EN](readme-e.txt)

## License

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.

本ソフトウェアは、作者である[上野智弘](http://www.tomozon.sakura.ne.jp/wince/)様から電子メールでの許諾を得た上で、[MIT License](LICENSE) の下で配布しています。以下に実際の文面を記します。

![Official Permit](permit.png)

```
上野です。
修正、配布についてはご自由になさってください。
ライセンスについては、OSS化で問題ありません。
ライセンス形式は、このような古いソフトに対して商用利用して
私的な利益を得ようとする人はもういないでしょうから
私の公開しているプログラムはすべてライセンス放棄で良いです。
なお、JINZO Paint フルカラー版のソースファイルは遺失してしまっていて
公開することができません。ご了承願います。
以上、よろしくお願いします。
```
Loading

0 comments on commit 23a5ff3

Please sign in to comment.