Changeset 293 in xtideuniversalbios for trunk/Configurator/Src/Libraries/menu/menudraw.asm
- Timestamp:
- Mar 4, 2012, 1:33:52 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configurator/Src/Libraries/menu/menudraw.asm
r181 r293 61 61 push cx 62 62 call MenuCrsr_GetCursor ; Get current cursor to DX 63 eMOVZX cx, BYTE [bp+MENUVARS.bWidth]; Load menu width63 eMOVZX cx, [bp+MENUVARS.bWidth] ; Load menu width 64 64 add cl, [bp+MENUVARS.bInitX] ; Add menu start X coord 65 65 sub cl, W_OFF_CRSR_STR & 0FFh ; Subtract right borders … … 164 164 call MenuCrsr_Point1stItem ; Set cursor position 165 165 mov cx, [bp+MENUVARS.wItemTop] ; Load idx of first menuitem to draw 166 eMOVZX dx, BYTE [bp+MENUVARS.bVisCnt]; Load number of visible menuitems166 eMOVZX dx, [bp+MENUVARS.bVisCnt] ; Load number of visible menuitems 167 167 MIN_U dx, [bp+MENUVARS.wItemCnt] ; Limit to item count 168 168 add dx, cx ; One past last menuitem to draw … … 266 266 call MenuDraw_TopBorder ; Draw top border 267 267 call MenuDraw_NewlineBrdr ; Change line 268 eMOVZX cx, BYTE [bp+MENUVARS.bTitleH]; Load number of title strings268 eMOVZX cx, [bp+MENUVARS.bTitleH] ; Load number of title strings 269 269 jcxz .Return ; Return if no title strings 270 270 ALIGN JUMP_ALIGN … … 284 284 xor dx, dx ; Zero DX 285 285 call MenuCrsr_PointNfoBrdr ; Set cursor 286 eMOVZX cx, BYTE [bp+MENUVARS.bInfoH]; Load number of info strings286 eMOVZX cx, [bp+MENUVARS.bInfoH] ; Load number of info strings 287 287 test BYTE [bp+MENUVARS.bFlags], FLG_MNU_HIDENFO ; Information hidden? 288 288 jnz SHORT .JumpToBottomBorder … … 320 320 xor dx, dx ; Zero DX 321 321 call MenuCrsr_PointItemBrdr ; Set cursor 322 eMOVZX cx, BYTE [bp+MENUVARS.bVisCnt]; Load max number of item strings322 eMOVZX cx, [bp+MENUVARS.bVisCnt] ; Load max number of item strings 323 323 ALIGN JUMP_ALIGN 324 324 .LineLoop: … … 374 374 mov dl, bh ; Leftmost 375 375 PRINT_CHAR 376 eMOVZX cx, BYTE[bp+MENUVARS.bWidth]376 eMOVZX cx, [bp+MENUVARS.bWidth] 377 377 times 2 dec cx ; Subtract borders 378 378 mov dl, bl ; Middle … … 438 438 mov dh, B_V ; Assume no scroll bars needed 439 439 mov ax, [bp+MENUVARS.wItemCnt] ; Load menuitem count to AX 440 eMOVZX bx, BYTE[bp+MENUVARS.bVisCnt] ; Load visible menuitems to BX440 eMOVZX bx, [bp+MENUVARS.bVisCnt] ; Load visible menuitems to BX 441 441 cmp ax, bx ; Need scroll bars? 442 442 jbe .Return ; If not, return
Note:
See TracChangeset
for help on using the changeset viewer.