DeskTop: bottom-align volume icons

This commit is contained in:
Joshua Bell 2019-03-15 20:03:28 -07:00
parent a79eba08d1
commit 6a88449189

View File

@ -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