Removed the call to tgi_clear from tgi_init, so the screen is not
automatically cleared. git-svn-id: svn://svn.cc65.org/cc65/trunk@4559 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -5306,10 +5306,14 @@ be used in presence of a prototype.
|
|||||||
<tag/Header/<tt/<ref id="tgi.h" name="tgi.h">/
|
<tag/Header/<tt/<ref id="tgi.h" name="tgi.h">/
|
||||||
<tag/Declaration/<tt/void __fastcall__ tgi_init (void);/
|
<tag/Declaration/<tt/void __fastcall__ tgi_init (void);/
|
||||||
<tag/Description/The tgi_init function will set the default palette to the
|
<tag/Description/The tgi_init function will set the default palette to the
|
||||||
hardware and clear the screen.
|
hardware.
|
||||||
<tag/Limits/<itemize>
|
<tag/Limits/<itemize>
|
||||||
<item>The function is only available as fastcall function, so it may only
|
<item>The function is only available as fastcall function, so it may only
|
||||||
be used in presence of a prototype.
|
be used in presence of a prototype.
|
||||||
|
<item><tt/tgi_init/ will not clear the screen. This allows switching between
|
||||||
|
text and graphics mode on platforms that have separate memory areas for the
|
||||||
|
screens. If you want the screen cleared, call <tt/<ref id="tgi_clear"
|
||||||
|
name="tgi_clear">/ after <tt/tgi_init/.
|
||||||
</itemize>
|
</itemize>
|
||||||
<tag/Availability/cc65
|
<tag/Availability/cc65
|
||||||
<tag/See also/Other tgi functions.
|
<tag/See also/Other tgi functions.
|
||||||
|
|||||||
@@ -65,11 +65,7 @@
|
|||||||
jsr pushax ; Width scale
|
jsr pushax ; Width scale
|
||||||
jsr pushax ; Heigh scale
|
jsr pushax ; Heigh scale
|
||||||
jsr pusha ; Text direction = TGI_TEXT_VERTICAL
|
jsr pusha ; Text direction = TGI_TEXT_VERTICAL
|
||||||
jsr _tgi_textstyle ; A = Font = TGI_FONT_BITMAP
|
jmp _tgi_textstyle ; A = Font = TGI_FONT_BITMAP
|
||||||
|
|
||||||
; Clear the screen
|
|
||||||
|
|
||||||
jmp tgi_clear
|
|
||||||
|
|
||||||
; Error exit
|
; Error exit
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user