- add fake "main menu"
[enigma2.git] / lib / gdi / font.cpp
index ee228576bfb9852bfb495159a46919c35199f44e..187512d505ea45ddf0f746640147a4d33740dc49 100644 (file)
@@ -60,12 +60,12 @@ static gLookup &getColor(const gPalette &pal, const gRGB &start, const gRGB &end
        if (i != colorcache.end())
                return i->second;
        gLookup &n=colorcache.insert(std::pair<fntColorCacheKey,gLookup>(key,gLookup())).first->second;
-       eDebug("[FONT] creating new font color cache entry %02x%02x%02x%02x .. %02x%02x%02x%02x", start.a, start.r, start.g, start.b,
-               end.a, end.r, end.g, end.b);
+//     eDebug("[FONT] creating new font color cache entry %02x%02x%02x%02x .. %02x%02x%02x%02x", start.a, start.r, start.g, start.b,
+//             end.a, end.r, end.g, end.b);
        n.build(16, pal, start, end);
-/*     for (int i=0; i<16; i++)
-               eDebugNoNewLine("%02x|%02x%02x%02x%02x ", (int)n.lookup[i], pal.data[n.lookup[i]].a, pal.data[n.lookup[i]].r, pal.data[n.lookup[i]].g, pal.data[n.lookup[i]].b);
-       eDebug("");*/
+//     for (int i=0; i<16; i++)
+//             eDebugNoNewLine("%02x|%02x%02x%02x%02x ", (int)n.lookup[i], pal.data[n.lookup[i]].a, pal.data[n.lookup[i]].r, pal.data[n.lookup[i]].g, pal.data[n.lookup[i]].b);
+//     eDebug("");
        return n;
 }
 
@@ -675,6 +675,7 @@ void eTextPara::blit(gDC &dc, const ePoint &offset, const gRGB &background, cons
                        continue;
                int rx=i->x+glyph_bitmap->left + offset.x();
                int ry=i->y-glyph_bitmap->top  + offset.y();
+               
                __u8 *d=(__u8*)(surface->data)+buffer_stride*ry+rx*surface->bypp;
                __u8 *s=glyph_bitmap->buffer;
                register int sx=glyph_bitmap->width;
@@ -706,6 +707,7 @@ void eTextPara::blit(gDC &dc, const ePoint &offset, const gRGB &background, cons
                                {
                                        register __u8 *td=d;
                                        register int ax;
+                                       
                                        for (ax=0; ax<sx; ax++)
                                        {       
                                                register int b=(*s++)>>4;