mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
pretty minor code changes
This commit is contained in:
parent
3c770b1e5c
commit
92cfdcb6b8
@ -645,13 +645,12 @@ render:
|
|||||||
for(size_t x = 0; x < scrW; x++) {
|
for(size_t x = 0; x < scrW; x++) {
|
||||||
for(size_t y = 0; y < scrH; y++) {
|
for(size_t y = 0; y < scrH; y++) {
|
||||||
nn_scrchr_t p = nn_getPixel(s, x, y);
|
nn_scrchr_t p = nn_getPixel(s, x, y);
|
||||||
int l;
|
|
||||||
const char *s = CodepointToUTF8(p.codepoint, &l);
|
|
||||||
// fuck palettes
|
// fuck palettes
|
||||||
Color fgColor = ne_processColor(p.fg);
|
Color fgColor = ne_processColor(p.fg);
|
||||||
Color bgColor = ne_processColor(p.bg);
|
Color bgColor = ne_processColor(p.bg);
|
||||||
DrawRectangle(x * pixelWidth, y * pixelHeight, pixelWidth, pixelHeight, bgColor);
|
DrawRectangle(x * pixelWidth, y * pixelHeight, pixelWidth, pixelHeight, bgColor);
|
||||||
DrawTextEx(unscii, s, (Vector2) {x * pixelWidth, y * pixelHeight}, pixelHeight - 5, spacing, fgColor);
|
DrawTextCodepoint(unscii, p.codepoint, (Vector2) {x * pixelWidth, y * pixelHeight}, pixelHeight - 5, fgColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user