Changeset 205 in xtideuniversalbios


Ignore:
Timestamp:
Dec 5, 2011, 3:14:21 PM (11 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Assembly Library:

  • Menu Exit event can now be send when closing menu.
Location:
trunk/Assembly_Library
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Inc/Menu.inc

    r178 r205  
    1919;--------------------------------------------------------------------
    2020%macro CALL_MENU_LIBRARY 1
    21     %ifidn %1, Close
     21    %ifidn %1, CloseMenuIfExitEventAllows
     22        call    MenuInit_CloseMenuIfExitEventAllows
     23
     24    %elifidn %1, Close
    2225        call    MenuInit_CloseMenuWindow
    2326
     
    5760struc MENU_LIB
    5861    .DisplayWithHandlerInBXandUserDataInDXAX    resb    2
     62    .SendExitMenuEvent:
    5963    .Close:
    6064    .RefreshWindow                              resb    2
  • trunk/Assembly_Library/Src/Menu/MenuInit.asm

    r133 r205  
    8484
    8585;--------------------------------------------------------------------
     86; MenuInit_CloseMenuIfExitEventAllows
     87;   Parameters
     88;       SS:BP:  Ptr to MENU
     89;   Returns:
     90;       Nothing
     91;   Corrupts registers:
     92;       AX, BX, DX
     93;--------------------------------------------------------------------
     94%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
     95ALIGN JUMP_ALIGN
     96MenuInit_CloseMenuIfExitEventAllows:
     97    call    MenuEvent_ExitMenu
     98    jc      SHORT MenuInit_CloseMenuWindow
     99    ret
     100%endif
     101
     102
     103;--------------------------------------------------------------------
    86104; MenuInit_CloseMenuWindow
    87105;   Parameters
Note: See TracChangeset for help on using the changeset viewer.