Skip to content

Commit

Permalink
非矩形窗口
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtion committed May 19, 2016
1 parent 203dd63 commit 73b7421
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 29_day/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ haribote.img : haribote/ipl20.bin haribote/haribote.sys Makefile \
copy from:type/type.hrb to:@: \
copy from:iroha/iroha.hrb to:@: \
copy from:chklang/chklang.hrb to:@: \
copy from:notrec/notrec.hrb to:@: \
copy from:euc.txt to:@: \
copy from:nihongo/nihongo.fnt to:@: \
imgout:haribote.img
Expand Down Expand Up @@ -90,6 +91,7 @@ full :
$(MAKE) -C type
$(MAKE) -C iroha
$(MAKE) -C chklang
$(MAKE) -C notrec
$(MAKE) haribote.img

run_full :
Expand Down Expand Up @@ -138,6 +140,7 @@ clean_full :
$(MAKE) -C type clean
$(MAKE) -C iroha clean
$(MAKE) -C chklang clean
$(MAKE) -C notrec clean

src_only_full :
$(MAKE) -C haribote src_only
Expand Down Expand Up @@ -165,6 +168,7 @@ src_only_full :
$(MAKE) -C type src_only
$(MAKE) -C iroha src_only
$(MAKE) -C chklang src_only
$(MAKE) -C notrec src_only
-$(DEL) haribote.img

refresh :
Expand Down
1 change: 1 addition & 0 deletions 29_day/notrec/!cons_9x.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
command
1 change: 1 addition & 0 deletions 29_day/notrec/!cons_nt.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cmd.exe
5 changes: 5 additions & 0 deletions 29_day/notrec/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
APP = notrec
STACK = 11k
MALLOC = 0k

include ../app_make.txt
1 change: 1 addition & 0 deletions 29_day/notrec/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
..\..\z_tools\make.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
17 changes: 17 additions & 0 deletions 29_day/notrec/notrec.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "apilib.h"

void HariMain(void)
{
int win;
char buf[150 * 70];
win = api_openwin(buf, 150, 70, 255, "notrec");
api_boxfilwin(win, 0, 50, 34, 69, 255);
api_boxfilwin(win, 115, 50, 149, 69, 255);
api_boxfilwin(win, 50, 30, 99, 49, 255);
for (;;) {
if (api_getkey(1) == 0x0a) {
break; /*按下回车键则break; */
}
}
api_end();
}

0 comments on commit 73b7421

Please sign in to comment.