aboutsummaryrefslogtreecommitdiff
path: root/lib/gdi/fb.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2004-05-27 22:30:21 +0000
committerFelix Domke <tmbinc@elitedvb.net>2004-05-27 22:30:21 +0000
commitd6f6602d7cea3a7899990fe79216af7d98d05917 (patch)
tree22606cee18e18a7c7830899773240a8ae9067070 /lib/gdi/fb.cpp
parentae9b6fba0b02b5990fd1635a2154336c5043df02 (diff)
downloadenigma2-d6f6602d7cea3a7899990fe79216af7d98d05917.tar.gz
enigma2-d6f6602d7cea3a7899990fe79216af7d98d05917.zip
yes! ich habs kaputt gemacht! (doesn't compile anymore, doesn't work anymore,
lots of work required).
Diffstat (limited to 'lib/gdi/fb.cpp')
-rw-r--r--lib/gdi/fb.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/gdi/fb.cpp b/lib/gdi/fb.cpp
index 96ca4313..52d950a6 100644
--- a/lib/gdi/fb.cpp
+++ b/lib/gdi/fb.cpp
@@ -88,6 +88,8 @@ int fbClass::SetMode(unsigned int nxRes, unsigned int nyRes, unsigned int nbpp)
{
screeninfo.xres_virtual=screeninfo.xres=nxRes;
screeninfo.yres_virtual=screeninfo.yres=nyRes;
+ screeninfo.height=0;
+ screeninfo.width=0;
screeninfo.xoffset=screeninfo.yoffset=0;
screeninfo.bits_per_pixel=nbpp;
if (ioctl(fd, FBIOPUT_VSCREENINFO, &screeninfo)<0)
@@ -131,7 +133,7 @@ int fbClass::PutCMAP()
void fbClass::Box(int x, int y, int width, int height, int color, int backcolor)
{
- if (width<=2)
+ if (width<=2 || locked)
return;
int offset=y*stride+x/2;
int first=0xF0|((color&0xF0)>>4);
@@ -149,6 +151,8 @@ void fbClass::Box(int x, int y, int width, int height, int color, int backcolor)
void fbClass::NBox(int x, int y, int width, int height, int color)
{
+ if (locked)
+ return;
int offset=y*stride+x/2;
int halfwidth=width/2;
for (int ay=y; ay<(y+height); ay++)
@@ -160,6 +164,8 @@ void fbClass::NBox(int x, int y, int width, int height, int color)
void fbClass::VLine(int x, int y, int sy, int color)
{
+ if (locked)
+ return;
int offset=y*stride+x/2;
while (sy--)
{