fbaccel: implement support for SPARK target

this should obsolete framebuffer_spark.cpp
This commit is contained in:
Stefan Seyfried
2013-01-13 17:52:44 +01:00
parent 7e6e08da5b
commit bc062dca05
3 changed files with 327 additions and 9 deletions

View File

@@ -490,6 +490,13 @@ fprintf(stderr, "CFrameBuffer::setMode avail: %d active: %d\n", available, activ
screeninfo.xres, screeninfo.yres, screeninfo.bits_per_pixel);
}
#endif
#if HAVE_SPARK_HARDWARE
/* it's all fake... :-) */
screeninfo.xres = screeninfo.xres_virtual = DEFAULT_XRES;
screeninfo.yres = screeninfo.yres_virtual = DEFAULT_YRES;
screeninfo.bits_per_pixel = DEFAULT_BPP;
stride = screeninfo.xres * screeninfo.bits_per_pixel / 8;
#else
#ifndef USE_OPENGL
fb_fix_screeninfo _fix;
@@ -498,6 +505,7 @@ fprintf(stderr, "CFrameBuffer::setMode avail: %d active: %d\n", available, activ
return -1;
}
stride = _fix.line_length;
#endif
#endif
xRes = screeninfo.xres;
yRes = screeninfo.yres;