mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-13 22:00:40 +00:00
Added DEBUG option to fb.c to avoid on-screen noise
This commit is contained in:
parent
cf9bcd966e
commit
7fa637650d
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
#include "mb.h"
|
#include "mb.h"
|
||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
|
|
||||||
|
#define DEBUG 1
|
||||||
|
|
||||||
unsigned int width, height, pitch, isrgb;
|
unsigned int width, height, pitch, isrgb;
|
||||||
unsigned char *fb;
|
unsigned char *fb;
|
||||||
|
|
||||||
|
@ -228,7 +230,7 @@ void debugstr(char *str) {
|
||||||
if (cury + 8 >= 1080) {
|
if (cury + 8 >= 1080) {
|
||||||
cury = 0;
|
cury = 0;
|
||||||
}
|
}
|
||||||
drawString(curx, cury, str, 0x0f, 1);
|
if (DEBUG == 1) drawString(curx, cury, str, 0x0f, 1);
|
||||||
curx += (strlen(str) * 8);
|
curx += (strlen(str) * 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue