diff options
Diffstat (limited to 'driver/vesa.c')
| -rw-r--r-- | driver/vesa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/driver/vesa.c b/driver/vesa.c index eb99173..1bd4b7a 100644 --- a/driver/vesa.c +++ b/driver/vesa.c @@ -179,7 +179,8 @@ void PutPixel(int x,int y, int color) if (x<0 || x>VbeModeInfoBlock->Xres|| y<0 || y>VbeModeInfoBlock->Yres) return; if (x) x = (x*(VbeModeInfoBlock->bpp>>3)); // get bytes (divide by 8) if (y) y = (y*VbeModeInfoBlock->pitch); - uint8_t *cTemp=VbeModeInfoBlock->physbase; + //uint8_t *cTemp=VbeModeInfoBlock->physbase; + uint8_t *cTemp=VMEM_FRAMEBUFFER; cTemp[x+y] = (uint8_t)(color & 0xff); cTemp[x+y+1] = (uint8_t)((color>>8) & 0xff); |
