Skip to content

Commit

Permalink
Add UI action IDs/names for setting border mode
Browse files Browse the repository at this point in the history
Add `ACTION_BORDER_MODE_(NORMAL|FULL|DEBUG|NONE)` ("border-mode-(normal|full|debug|none").


git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@44174 379a1393-f5fb-40a0-bcee-ef074d9b53f7
  • Loading branch information
Compyx committed Jul 2, 2023
1 parent 8438b91 commit 4a60c0b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions vice/doc/vim/syntax/vhk.vim
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ syn match vhkActionName "\<psid-loop-toggle\>"
syn match vhkActionName "\<printer-formfeed-\(4\|5\|6\|userport\)\>"
syn match vhkActionName "\<virtual-keyboard\>"
syn match vhkActionName "\<show-statusbar\(-secondary\)\?-toggle\>"
syn match vhkActionName "\<border-mode-\(normal\|full\|debug\|none\)\>"

" Comments
syn match vhkComment "[#;].*$" contains=vhkTodo
Expand Down
6 changes: 6 additions & 0 deletions vice/src/arch/shared/uiactions.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,12 @@ static const ui_action_info_private_t action_info_list[] = {

{ ACTION_VIRTUAL_KEYBOARD, "virtual-keyboard", "Activate virtual keyboard", VICE_MACHINE_ALL^VICE_MACHINE_VSID },

/* Border modes (also invalid for x128's VDC window) */
{ ACTION_BORDER_MODE_NORMAL, "border-mode-normal", "Set border mode to Normal", VICE_MACHINE_ALL^VICE_MACHINE_VSID^VICE_MACHINE_CBM6x0^VICE_MACHINE_PET },
{ ACTION_BORDER_MODE_FULL, "border-mode-full", "Set border mode to Full", VICE_MACHINE_ALL^VICE_MACHINE_VSID^VICE_MACHINE_CBM6x0^VICE_MACHINE_PET },
{ ACTION_BORDER_MODE_DEBUG, "border-mode-debug", "Set border mode to Debug", VICE_MACHINE_ALL^VICE_MACHINE_VSID^VICE_MACHINE_CBM6x0^VICE_MACHINE_PET },
{ ACTION_BORDER_MODE_NONE, "border-mode-none", "Set border mode to None", VICE_MACHINE_ALL^VICE_MACHINE_VSID^VICE_MACHINE_CBM6x0^VICE_MACHINE_PET },

{ ACTION_INVALID, NULL, NULL, 0 }
};

Expand Down
6 changes: 6 additions & 0 deletions vice/src/arch/shared/uiactions.h
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,12 @@ enum {
/* SDL UI only: show virtual keyboard on the emulated display */
ACTION_VIRTUAL_KEYBOARD,

/* Border modes */
ACTION_BORDER_MODE_NORMAL,
ACTION_BORDER_MODE_FULL,
ACTION_BORDER_MODE_DEBUG,
ACTION_BORDER_MODE_NONE,

ACTION_ID_COUNT /**< number of action IDs */
};

Expand Down

0 comments on commit 4a60c0b

Please sign in to comment.