Changed the prototype of videomode() to take and return an unsigned instead of
an unsigned char. Two more video mode constants as discussed on the list. git-svn-id: svn://svn.cc65.org/cc65/trunk@4133 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -5032,7 +5032,7 @@ used in presence of a prototype.
|
||||
<descrip>
|
||||
<tag/Function/Switch to either 40 or 80 column mode.
|
||||
<tag/Header/<tt/<ref id="c128.h" name="c128.h">/
|
||||
<tag/Declaration/<tt/unsigned char __fastcall__ videomode (unsigned char Mode);/
|
||||
<tag/Declaration/<tt/unsigned __fastcall__ videomode (unsigned Mode);/
|
||||
<tag/Description/Switch to 40 or 80 column mode depending on the argument. If
|
||||
the requested mode is already active, nothing happens. The old mode is returned
|
||||
from the call.
|
||||
|
||||
@@ -74,8 +74,10 @@
|
||||
#define COLOR_GRAY3 0x0F
|
||||
|
||||
/* Video mode defines */
|
||||
#define VIDEOMODE_40COL 0x00
|
||||
#define VIDEOMODE_80COL 0x80
|
||||
#define VIDEOMODE_40x25 0x00
|
||||
#define VIDEOMODE_80x25 0x80
|
||||
#define VIDEOMODE_40COL VIDEOMODE_40x25
|
||||
#define VIDEOMODE_80COL VIDEOMODE_80x25
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 2009-09-07
|
||||
;
|
||||
; unsigned char __fastcall__ videomode (unsigned char Mode);
|
||||
; unsigned __fastcall__ videomode (unsigned Mode);
|
||||
; /* Set the video mode, return the old mode */
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user