| 303 | }; |
| 304 | |
| 305 | static 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) |
| 333 | void FCEU_DrawRecordingStatus(uint8* XBuf) |
no test coverage detected