MCPcopy Create free account
hub / github.com/Stewmath/GameYob / copyTile

Function copyTile

arm9/source/gbgfx.cpp:1147–1160  ·  view source on GitHub ↗

Currently not actually used

Source from the content-addressed store, hash-verified

1145
1146// Currently not actually used
1147void copyTile(u8 *src,u16 *dest) {
1148 for (int y=0; y<8; y++) {
1149 dest[y*2] = 0;
1150 dest[y*2+1] = 0;
1151 int index = y*2;
1152 for (int x=0; x<8; x++) {
1153 int colorid;
1154 colorid = !!(src[index] & (0x80>>x));
1155 colorid |= !!(src[index+1] & (0x80>>x))<<1;
1156 int orValue = (colorid<<((x%4)*4));
1157 dest[y*2+x/4] |= orValue;
1158 }
1159 }
1160}
1161
1162void drawScreen()
1163{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected