Changeset 162 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu
- Timestamp:
- May 28, 2011, 7:34:42 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/Dialog/Dialog.asm
r60 r162 1 ; File name : Dialog.asm2 1 ; Project name : Assembly Library 3 ; Created date : 6.8.20104 ; Last update : 22.11.20105 ; Author : Tomi Tilli6 2 ; Description : Common functions for many dialogs. 7 3 … … 235 231 call MenuLocation_GetTitleBordersTopLeftCoordinatesToAX 236 232 cmp ah, dh ; Dialog taller than parent? 237 jb SHORT .RedrawDialogAreaAndWholeParentWindow 238 jmp SHORT .RedrawWholeParentWindow 239 240 ;-------------------------------------------------------------------- 241 ; .GetParentTitleBorderCoordinatesToDX 242 ; Parameters: 243 ; SS:SI: Ptr to parent MENU 244 ; SS:BP: Ptr to DIALOG 245 ; Returns: 246 ; DL: Parent border column (X) 247 ; DH: Parent border row (Y) 248 ; Corrupts: 249 ; AX 250 ;-------------------------------------------------------------------- 251 ALIGN JUMP_ALIGN 252 .GetParentTitleBorderCoordinatesToDX: 253 xchg si, bp 254 call MenuLocation_GetTitleBordersTopLeftCoordinatesToAX 255 xchg bp, si 256 xchg dx, ax 257 ret 233 jnb SHORT .RedrawWholeParentWindow 234 ; Fall to .RedrawDialogAreaAndWholeParentWindow 258 235 259 236 ;-------------------------------------------------------------------- … … 268 245 ; AX, BX, CX, DX, SI, DI 269 246 ;-------------------------------------------------------------------- 270 ALIGN JUMP_ALIGN271 247 .RedrawDialogAreaAndWholeParentWindow: 272 248 push si … … 286 262 pop bp 287 263 ret 264 265 ;-------------------------------------------------------------------- 266 ; .GetParentTitleBorderCoordinatesToDX 267 ; Parameters: 268 ; SS:SI: Ptr to parent MENU 269 ; SS:BP: Ptr to DIALOG 270 ; Returns: 271 ; DL: Parent border column (X) 272 ; DH: Parent border row (Y) 273 ; Corrupts: 274 ; AX 275 ;-------------------------------------------------------------------- 276 ALIGN JUMP_ALIGN 277 .GetParentTitleBorderCoordinatesToDX: 278 xchg si, bp 279 call MenuLocation_GetTitleBordersTopLeftCoordinatesToAX 280 xchg bp, si 281 xchg dx, ax 282 ret
Note:
See TracChangeset
for help on using the changeset viewer.