MCPcopy Create free account
hub / github.com/TASEmulators/fceux / drawstatus

Function drawstatus

src/drawing.cpp:305–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303};
304
305static void drawstatus(uint8* XBuf, int n, int y, int xofs)
306{
307 uint8* slines=sline_icons[n];
308 int i;
309
310
311 XBuf += FCEU_TextScanlineOffsetFromBottom(y) + 240 + 255 + xofs;
312 for(i=0; slines[i]!=99; i+=3)
313 {
314 int y=slines[i];
315 uint8* dest=XBuf+(y*256);
316 int x;
317 for(x=slines[i+1]; x!=slines[i+2]; ++x)
318 dest[x]=0;
319 }
320
321 XBuf -= 255;
322 for(i=0; slines[i]!=99; i+=3)
323 {
324 int y=slines[i];
325 uint8* dest=XBuf+(y*256);
326 int x;
327 for(x=slines[i+1]; x!=slines[i+2]; ++x)
328 dest[x]=4;
329 }
330}
331
332/// this draws the recording icon (play/pause/record)
333void FCEU_DrawRecordingStatus(uint8* XBuf)

Callers 1

FCEU_DrawRecordingStatusFunction · 0.85

Calls 1

Tested by

no test coverage detected