Add Quad drawing option

This commit is contained in:
Michal Moskal
2017-07-11 15:52:37 +02:00
parent cb88fd7c2b
commit b60775fa50
4 changed files with 11 additions and 4 deletions

View File

@ -94,7 +94,7 @@ namespace screen {
let byteWidth = (currFont.charWidth + 7) >> 3
let charSize = byteWidth * currFont.charHeight
let iconBuf = output.createBuffer(2 + charSize)
let double = (mode & Draw.Double) ? 2 : 1
let double = (mode & Draw.Quad) ? 4 : (mode & Draw.Double) ? 2 : 1
iconBuf[0] = 0xf0
iconBuf[1] = currFont.charWidth
while (cp < text.length) {