mirror of
https://github.com/irmen/prog8.git
synced 2025-11-01 06:16:15 +00:00
added txt.size() to return text screen width and height in 1 call. Also fixed txt.width/height on the C128 (where SCREEN reports 1 less for them...)
This commit is contained in:
@@ -825,6 +825,7 @@ txt {
|
||||
setcc (ubyte col, ubyte row, ubyte character, ubyte charcolor)
|
||||
setchr (ubyte col @X, ubyte row @Y, ubyte character @A) clobbers (A,Y)
|
||||
setclr (ubyte col @X, ubyte row @Y, ubyte color @A) clobbers (A,Y)
|
||||
size () clobbers (A) -> ubyte @X, ubyte @Y
|
||||
spc ()
|
||||
uppercase ()
|
||||
waitkey () -> ubyte @A
|
||||
|
||||
@@ -938,6 +938,7 @@ txt {
|
||||
setcc (ubyte col, ubyte row, ubyte character, ubyte charcolor)
|
||||
setchr (ubyte col @X, ubyte row @Y, ubyte character @A) clobbers (A,Y)
|
||||
setclr (ubyte col @X, ubyte row @Y, ubyte color @A) clobbers (A,Y)
|
||||
size () clobbers (A) -> ubyte @X, ubyte @Y
|
||||
spc ()
|
||||
uppercase ()
|
||||
waitkey () -> ubyte @A
|
||||
|
||||
@@ -1422,6 +1422,7 @@ txt {
|
||||
setcc2 (ubyte col, ubyte row, ubyte character, ubyte colors)
|
||||
setchr (ubyte col @X, ubyte row @Y, ubyte character @A) clobbers (A)
|
||||
setclr (ubyte col @X, ubyte row @Y, ubyte color @A) clobbers (A)
|
||||
size () clobbers (A) -> ubyte @X, ubyte @Y
|
||||
spc ()
|
||||
t256c (bool enable)
|
||||
uppercase ()
|
||||
|
||||
@@ -540,6 +540,7 @@ txt {
|
||||
setcc (ubyte col, ubyte row, ubyte character, ubyte charcolor_ignored)
|
||||
setchr (ubyte col @X, ubyte row @Y, ubyte character @A) clobbers (A,Y)
|
||||
setclr (ubyte col, ubyte row, ubyte color)
|
||||
size () clobbers (A) -> ubyte @X, ubyte @Y
|
||||
spc ()
|
||||
uppercase ()
|
||||
waitkey () -> ubyte @A
|
||||
|
||||
@@ -559,6 +559,7 @@ txt {
|
||||
rvs_off ()
|
||||
rvs_on ()
|
||||
setchr (ubyte col, ubyte row, ubyte char)
|
||||
size () -> ubyte, ubyte
|
||||
spc ()
|
||||
uppercase ()
|
||||
width () -> ubyte
|
||||
|
||||
Reference in New Issue
Block a user