Skip to content

Commit

Permalink
tvdemo: do not show 'Video mode' menu entry on modern platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
magiblot committed Nov 16, 2024
1 parent ef5f7b7 commit 5fed541
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/tvdemo/tvcmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ const int cmRestoreCmd = 111;
const int cmEventViewCmd= 112;
const int cmChBackground= 113;
const int cmFndEventView= 114;
const int cmVideoMode = 2002;
const int cmVideoMode = 115;

#endif // __TVCMDS_H
7 changes: 5 additions & 2 deletions examples/tvdemo/tvdemo3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,13 @@ TMenuBar *TVDemo::initMenuBar(TRect r)
{
TSubMenu& sub1 =
*new TSubMenu( "~\360~", 0, hcSystem ) +
*new TMenuItem( "~V~ideo mode", cmVideoMode, kbNoKey, hcNoContext, "" ) +
newLine() +
*new TMenuItem( "~A~bout...", cmAboutCmd, kbNoKey, hcSAbout ) +
newLine() +
#if defined( __BORLANDC__ )
// Changing the screen mode only makes sense on DOS or DPMI.
*new TMenuItem( "~V~ideo mode", cmVideoMode, kbNoKey, hcNoContext ) +
newLine() +
#endif
*new TMenuItem( "~P~uzzle", cmPuzzleCmd, kbNoKey, hcSPuzzle ) +
*new TMenuItem( "Ca~l~endar", cmCalendarCmd, kbNoKey, hcSCalendar ) +
*new TMenuItem( "Ascii ~T~able", cmAsciiCmd, kbNoKey, hcSAsciiTable ) +
Expand Down

0 comments on commit 5fed541

Please sign in to comment.