MCPcopy Create free account
hub / github.com/doldecomp/mkdd / erase

Method erase

libs/JSystem/JUtility/JUTDirectPrint.cpp:23–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void JUTDirectPrint::erase(int x, int y, int width, int height)
24{
25 if (!mFramebuffer) {
26 return;
27 }
28
29 if (400 < mFbWidth)
30 {
31 x = x << 1;
32 width = width << 1;
33 }
34
35 if (300 < mFbHeight)
36 {
37 y = y << 1;
38 height = height << 1;
39 }
40
41 u16 *pixel = mFrameMemory + mStride * y + x;
42 for (int i = 0; i < height; i++)
43 {
44 for (int j = 0; j < width; j++)
45 {
46 *pixel = 0x1080;
47 pixel = pixel + 1;
48 }
49
50 pixel += mStride - width;
51 }
52}
53
54u8 JUTDirectPrint::sAsciiTable[128] = {
55 0x7A, 0x7A, 0x7A, 0x7A, 0x7A, 0x7A, 0x7A, 0x7A, 0x7A, 0xFD, 0xFE, 0x7A, 0x7A, 0x7A, 0x7A, 0x7A,

Callers 2

showAssert_f_vaFunction · 0.45
doDrawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected