diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-12-08 21:59:14 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-12-08 21:59:14 +0100 |
| commit | e285e7cab2fe62e91cb726c429f872b2475fdf0a (patch) | |
| tree | dfc0e78b81dc2ca9dd77641cca9be5527b2bc5de /video/vesa.c | |
| parent | ddba680892e4dc8973d6c1d59f92affb987ca13b (diff) | |
fixed vesa fb mode!
Diffstat (limited to 'video/vesa.c')
| -rw-r--r-- | video/vesa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/vesa.c b/video/vesa.c index 416a893..8952f81 100644 --- a/video/vesa.c +++ b/video/vesa.c @@ -97,7 +97,7 @@ uint32_t vesa_init(vbeinfo *info,vbemodeinfo *mode,foolfont *rawfont) mode->Xres, mode->Yres, mode->banks, mode->attributes); log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"bpp: %d / physbase: 0x%x", mode->bpp,mode->physbase); -/* + // vesa modes // todo: take segment from vbeinfo! #ifdef FOOLSOS_SHOW_VESAMODES @@ -105,12 +105,11 @@ uint32_t vesa_init(vbeinfo *info,vbemodeinfo *mode,foolfont *rawfont) while(*modeptr!=0xffff&&*modeptr!=0) { - log(FOOLOS_MODULE_NAME,FOOLOS_LOG_DEBUG,"mode supported : 0x%x", (*modeptr)); - scr_put_hex(*modeptr); + log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"mode supported : 0x%X", (*modeptr)); modeptr++; } #endif -*/ + return VbeModeInfoBlock->physbase; @@ -127,6 +126,7 @@ void PutPixel(int x,int y, int color){ cTemp[x+y] = (uint8_t)(color & 0xff); cTemp[x+y+1] = (uint8_t)((color>>8) & 0xff); //cTemp[x+y+2] = (uint8_t)((color>>16) & 0xff); + } |
