mirror of
https://github.com/mi57730/a2d.git
synced 2024-06-09 05:29:28 +00:00
DeskTop: bottom-align volume icons
This commit is contained in:
parent
a79eba08d1
commit
6a88449189
|
@ -8937,9 +8937,10 @@ buffer: .res 16, 0 ; length overwritten with '/'
|
|||
|
||||
DEFINE_ON_LINE_PARAMS on_line_params,, cvi_data_buffer
|
||||
|
||||
max_icon_width = 53
|
||||
|
||||
.proc create_volume_icon
|
||||
max_icon_width = 53
|
||||
max_icon_height = 15
|
||||
|
||||
sta unit_number
|
||||
dex ; icon numbers are 1-based, and Trash is #1,
|
||||
dex ; so make this 0-based
|
||||
|
@ -9048,6 +9049,12 @@ create_icon:
|
|||
ldy #IconEntry::iconx
|
||||
add16in (icon_ptr),y, offset, (icon_ptr),y
|
||||
|
||||
;; Adjust vertically
|
||||
ldy #IconDefinition::maprect + MGTK::Rect::y2
|
||||
sub16in #max_icon_height, (icon_defn_ptr),y, offset
|
||||
ldy #IconEntry::icony
|
||||
add16in (icon_ptr),y, offset, (icon_ptr),y
|
||||
|
||||
;; Assign icon number
|
||||
ldx cached_window_icon_count
|
||||
dex
|
||||
|
|
Loading…
Reference in New Issue
Block a user