diff --git a/sortix/lfbtextbuffer.cpp b/sortix/lfbtextbuffer.cpp index 6823945d..173dda51 100644 --- a/sortix/lfbtextbuffer.cpp +++ b/sortix/lfbtextbuffer.cpp @@ -78,7 +78,6 @@ LFBTextBuffer* CreateLFBTextBuffer(uint8_t* lfb, uint32_t lfbformat, ret->chars = chars; Memory::Set(attrs, 0, sizeof(uint16_t) * columns * rows); ret->attrs = attrs; - ret->cursorcolor = ColorFromRGB(200, 200, 200); for ( size_t i = 0; i < 16UL; i++ ) { uint8_t r = i & 0b0100 ? (i & 0b1000 ? 255 : 191) : 0; @@ -193,7 +192,7 @@ void LFBTextBuffer::RenderChar(uint16_t vgachar, size_t posx, size_t posy) { uint32_t* line = (uint32_t*) (lfb + pixely * scansize); size_t pixelx = posx * (VGA_FONT_WIDTH+1) + x; - line[pixelx] = cursorcolor; + line[pixelx] = fgcolor; } } } diff --git a/sortix/lfbtextbuffer.h b/sortix/lfbtextbuffer.h index 4165dbe4..6a81cc91 100644 --- a/sortix/lfbtextbuffer.h +++ b/sortix/lfbtextbuffer.h @@ -99,7 +99,6 @@ private: size_t pixelsy; size_t scansize; uint32_t colors[16UL]; - uint32_t cursorcolor; uint32_t lfbformat; bool cursorenabled; TextPos cursorpos;