system/calendar: Post-SVN clean up
- Move source code from `trunk` into program root directory. - Update build files and ASM include paths.
This commit is contained in:
@@ -411,7 +411,7 @@ tup.append_table(img_files, {
|
|||||||
{"APM", VAR_PROGS .. "/system/apm/apm"},
|
{"APM", VAR_PROGS .. "/system/apm/apm"},
|
||||||
{"CALC", VAR_PROGS .. "/other/calc/calc"},
|
{"CALC", VAR_PROGS .. "/other/calc/calc"},
|
||||||
{"CALCPLUS", VAR_PROGS .. "/other/calcplus/calcplus"},
|
{"CALCPLUS", VAR_PROGS .. "/other/calcplus/calcplus"},
|
||||||
{"CALENDAR", VAR_PROGS .. "/system/calendar/trunk/calendar"},
|
{"CALENDAR", VAR_PROGS .. "/system/calendar/calendar"},
|
||||||
{"COLRDIAL", VAR_PROGS .. "/system/colrdial/color_dialog"},
|
{"COLRDIAL", VAR_PROGS .. "/system/colrdial/color_dialog"},
|
||||||
{"CROPFLAT", VAR_PROGS .. "/system/cropflat/cropflat"},
|
{"CROPFLAT", VAR_PROGS .. "/system/cropflat/cropflat"},
|
||||||
{"CPU", VAR_PROGS .. "/system/cpu/trunk/cpu"},
|
{"CPU", VAR_PROGS .. "/system/cpu/trunk/cpu"},
|
||||||
|
@@ -56,7 +56,7 @@ for %%i in (%BIN% %BIN%\demos %BIN%\develop %BIN%\lib %BIN%\games %BIN%\network
|
|||||||
echo *
|
echo *
|
||||||
echo Building system
|
echo Building system
|
||||||
echo *
|
echo *
|
||||||
fasm system\calendar\trunk\calendar.asm %BIN%\calendar
|
fasm system\calendar\calendar.asm %BIN%\calendar
|
||||||
fasm system\board\board.asm %BIN%\develop\board
|
fasm system\board\board.asm %BIN%\develop\board
|
||||||
fasm system\commouse\trunk\commouse.asm %BIN%\commouse
|
fasm system\commouse\trunk\commouse.asm %BIN%\commouse
|
||||||
fasm system\cpu\trunk\cpu.asm %BIN%\cpu
|
fasm system\cpu\trunk\cpu.asm %BIN%\cpu
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
if tup.getconfig("NO_FASM") ~= "" then return end
|
if tup.getconfig("NO_FASM") ~= "" then return end
|
||||||
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR")
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
|
||||||
tup.include(HELPERDIR .. "/use_fasm.lua")
|
tup.include(HELPERDIR .. "/use_fasm.lua")
|
||||||
add_include(tup.getvariantdir())
|
add_include(tup.getvariantdir())
|
||||||
|
|
@@ -1,8 +1,11 @@
|
|||||||
|
; SPDX-License-Identifier: NOASSERTION
|
||||||
|
;
|
||||||
|
|
||||||
; Calendar for KolibriOS
|
; Calendar for KolibriOS
|
||||||
;
|
;
|
||||||
; v1.5 - time redesign by Heavyiron
|
; v1.5 - time redesign by Heavyiron
|
||||||
; v1.2 - v1.55 - new design and functionality by Leency
|
; v1.2 - v1.55 - new design and functionality by Leency
|
||||||
; v1.1 - add change time support by DedOK
|
; v1.1 - add change time support by DedOK
|
||||||
; v1.0 - written in pure assembler by Ivushkin Andrey aka Willow
|
; v1.0 - written in pure assembler by Ivushkin Andrey aka Willow
|
||||||
; also - diamond, spraid, fedesco
|
; also - diamond, spraid, fedesco
|
||||||
;
|
;
|
||||||
@@ -21,7 +24,7 @@ use32
|
|||||||
dd 0x1000
|
dd 0x1000
|
||||||
dd 0x0
|
dd 0x0
|
||||||
dd 0x0
|
dd 0x0
|
||||||
include '..\..\..\macros.inc'
|
include '..\..\macros.inc'
|
||||||
include 'lang.inc'
|
include 'lang.inc'
|
||||||
include 'data.inc'
|
include 'data.inc'
|
||||||
|
|
||||||
@@ -126,7 +129,7 @@ macro DrawRect color1,color2,color3,color4 ; pizdec... but optimized well
|
|||||||
add ebx,1 shl 16
|
add ebx,1 shl 16
|
||||||
sub ecx,1 shl 16
|
sub ecx,1 shl 16
|
||||||
sub bx,2
|
sub bx,2
|
||||||
mcall
|
mcall
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -361,7 +364,7 @@ day_bounds db -1,0,7,0,-7,0,1,0 ; left,down,up,right
|
|||||||
je year_dec
|
je year_dec
|
||||||
cmp ah,179
|
cmp ah,179
|
||||||
je year_inc
|
je year_inc
|
||||||
|
|
||||||
mov ebx,10
|
mov ebx,10
|
||||||
cmp ah,9
|
cmp ah,9
|
||||||
je key.tab
|
je key.tab
|
||||||
@@ -401,8 +404,8 @@ day_bounds db -1,0,7,0,-7,0,1,0 ; left,down,up,right
|
|||||||
jmp upd
|
jmp upd
|
||||||
|
|
||||||
update_clock:
|
update_clock:
|
||||||
mcall 22,0x00000000
|
mcall 22,0x00000000
|
||||||
call draw_clock
|
call draw_clock
|
||||||
jmp still
|
jmp still
|
||||||
|
|
||||||
reset:
|
reset:
|
||||||
@@ -522,7 +525,7 @@ panel_top:
|
|||||||
mov ebx, eax
|
mov ebx, eax
|
||||||
sub eax, WIN_W
|
sub eax, WIN_W
|
||||||
shl ebx, 16
|
shl ebx, 16
|
||||||
add ebx, WIN_W
|
add ebx, WIN_W
|
||||||
mcall 0,,,COL_WINDOW_BG, ,title ; define window
|
mcall 0,,,COL_WINDOW_BG, ,title ; define window
|
||||||
mcall 12,2
|
mcall 12,2
|
||||||
GetSkinHeight
|
GetSkinHeight
|
||||||
@@ -532,7 +535,7 @@ panel_top:
|
|||||||
mcall 13,B_WBAR_X, ,COL_TOOLBAR_BG ; draw toolbar background
|
mcall 13,B_WBAR_X, ,COL_TOOLBAR_BG ; draw toolbar background
|
||||||
mcall 13,B_WBAR_X,BT_WBAR_Y,COL_TOOLBAR_BG ; draw toolbar background
|
mcall 13,B_WBAR_X,BT_WBAR_Y,COL_TOOLBAR_BG ; draw toolbar background
|
||||||
mcall 13,0*65536+B_WBAR_X,84*65536+199,0xE7E7E7
|
mcall 13,0*65536+B_WBAR_X,84*65536+199,0xE7E7E7
|
||||||
|
|
||||||
draw_window:
|
draw_window:
|
||||||
call draw_clock
|
call draw_clock
|
||||||
call draw_week
|
call draw_week
|
Reference in New Issue
Block a user