Skip to content

Commit db240e1

Browse files
Implementado Graphics.ClearScreen
1 parent 42b5a69 commit db240e1

File tree

4 files changed

+182
-118
lines changed

4 files changed

+182
-118
lines changed

Plataformas/8086/System.Drawing.hcb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,15 @@ Module CGA
364364
End
365365

366366
Sub ClearScreen(mode as VideoMode, color as UInt16)
367-
Throw NotImplementedError
367+
Dim tmp as UInt8
368+
Dim y as UInt16
369+
If color and 1 Then
370+
tmp = 0xff
371+
Else
372+
tmp = 0
373+
End
374+
For y = 0 to 199
375+
ByteSet mode, 0, y, tmp, 80
376+
End
368377
End
369378
End

0 commit comments

Comments
 (0)