diff --git a/desk.acc/show.text.file/a2d.inc b/desk.acc/show.text.file/a2d.inc index 0c77f4d..0dfdc8a 100644 --- a/desk.acc/show.text.file/a2d.inc +++ b/desk.acc/show.text.file/a2d.inc @@ -66,7 +66,7 @@ A2D_CREATE_WINDOW := $38 ;; 0 = desktop ;; 1, 2, ... = file windows ;; 100 = DA (for example) - ;; .byte flags + ;; .byte flags (A2D_CW_*) ;; bit 0: remove title bar ;; bit 1: add close box ;; bit 2: add resize box @@ -93,7 +93,7 @@ A2D_DESTROY_WINDOW := $39 A2D_GET_MOUSE := $40 ;; .word x ;; .word y - ;; .byte element + ;; .byte element (A2D_ELEM_*) ;; 0 = desktop ;; 1 = menu ;; 2 = client area (including scroll bars/resize box) @@ -135,7 +135,6 @@ A2D_UPDATE_SCROLL:= $4B ;; .byte pos (new position 0...250) - ;;; Used in A2D_GET_MOUSE A2D_ELEM_DESKTOP:= 0 A2D_ELEM_MENU := 1 @@ -160,6 +159,10 @@ A2D_SCROLL_PART_BELOW := 4 A2D_SCROLL_PART_AFTER := 4 A2D_SCROLL_PART_THUMB := 5 +;;; Used in A2D_CREATE_WINDOW +A2D_CW_NOTITLE := 1 << 0 +A2D_CW_ADDCLOSE := 1 << 1 +A2D_CW_ADDRESIZE:= 1 << 2 ;;; Macros .macro A2D_CALL op, addr diff --git a/desk.acc/show.text.file/stf.list b/desk.acc/show.text.file/stf.list index 0a61f8f..09c47d3 100644 --- a/desk.acc/show.text.file/stf.list +++ b/desk.acc/show.text.file/stf.list @@ -143,7 +143,7 @@ Current file: stf.s 000800 2 ;; 0 = desktop 000800 2 ;; 1, 2, ... = file windows 000800 2 ;; 100 = DA (for example) -000800 2 ;; .byte flags +000800 2 ;; .byte flags (A2D_CW_*) 000800 2 ;; bit 0: remove title bar 000800 2 ;; bit 1: add close box 000800 2 ;; bit 2: add resize box @@ -170,7 +170,7 @@ Current file: stf.s 000800 2 A2D_GET_MOUSE := $40 000800 2 ;; .word x 000800 2 ;; .word y -000800 2 ;; .byte element +000800 2 ;; .byte element (A2D_ELEM_*) 000800 2 ;; 0 = desktop 000800 2 ;; 1 = menu 000800 2 ;; 2 = client area (including scroll bars/resize box) @@ -212,7 +212,6 @@ Current file: stf.s 000800 2 ;; .byte pos (new position 0...250) 000800 2 000800 2 -000800 2 000800 2 ;;; Used in A2D_GET_MOUSE 000800 2 A2D_ELEM_DESKTOP:= 0 000800 2 A2D_ELEM_MENU := 1 @@ -237,6 +236,10 @@ Current file: stf.s 000800 2 A2D_SCROLL_PART_AFTER := 4 000800 2 A2D_SCROLL_PART_THUMB := 5 000800 2 +000800 2 ;;; Used in A2D_CREATE_WINDOW +000800 2 A2D_CW_NOTITLE := 1 << 0 +000800 2 A2D_CW_ADDCLOSE := 1 << 1 +000800 2 A2D_CW_ADDRESIZE:= 1 << 2 000800 2 000800 2 ;;; Macros 000800 2 .macro A2D_CALL op, addr @@ -566,7 +569,7 @@ Current file: stf.s 000994 1 000994 1 .proc window_params 000994 1 64 id: .byte window_id ; window identifier -000995 1 02 flags: .byte 2 ; window flags (2=include close box) +000995 1 02 flags: .byte A2D_CW_ADDCLOSE ; window flags (2=include close box) 000996 1 00 10 title: .addr $1000 ; overwritten to point at filename 000998 1 00 C1 L0998: .byte $00,$C1 ; ??? 00099A 1 diff --git a/desk.acc/show.text.file/stf.o b/desk.acc/show.text.file/stf.o index bbd24ee..642deef 100644 Binary files a/desk.acc/show.text.file/stf.o and b/desk.acc/show.text.file/stf.o differ diff --git a/desk.acc/show.text.file/stf.s b/desk.acc/show.text.file/stf.s index 67f5843..1943282 100644 --- a/desk.acc/show.text.file/stf.s +++ b/desk.acc/show.text.file/stf.s @@ -303,7 +303,7 @@ len: .byte 0 ; length .proc window_params id: .byte window_id ; window identifier -flags: .byte 2 ; window flags (2=include close box) +flags: .byte A2D_CW_ADDCLOSE ; window flags (2=include close box) title: .addr $1000 ; overwritten to point at filename L0998: .byte $00,$C1 ; ???