git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
load and save cutlists
[enigma2.git]
/
lib
/
gdi
/
gpixmap.cpp
diff --git
a/lib/gdi/gpixmap.cpp
b/lib/gdi/gpixmap.cpp
index 3e07bca05d2e36bca52705861fcfd981ac31c0f3..3ebd9a0296f18f5f2c476ce458857bb64a3238c4 100644
(file)
--- a/
lib/gdi/gpixmap.cpp
+++ b/
lib/gdi/gpixmap.cpp
@@
-180,11
+180,9
@@
void gPixmap::blit(const gPixmap &src, ePoint pos, const gRegion &clip, int flag
for (unsigned int i=0; i<clip.rects.size(); ++i)
{
eRect area=eRect(pos, src.size());
for (unsigned int i=0; i<clip.rects.size(); ++i)
{
eRect area=eRect(pos, src.size());
-
- if (!(flag & blitAlphaTest)) // HACK !!
- area&=clip.rects[i];
-
+ area&=clip.rects[i];
area&=eRect(ePoint(0, 0), size());
area&=eRect(ePoint(0, 0), size());
+
if ((area.width()<0) || (area.height()<0))
continue;
if ((area.width()<0) || (area.height()<0))
continue;
@@
-312,7
+310,7
@@
void gPixmap::blit(const gPixmap &src, ePoint pos, const gRegion &clip, int flag
// use duff's device here!
while (width--)
{
// use duff's device here!
while (width--)
{
- if (
*src==0x01
)
+ if (
!(pal[*src]&0x80000000)
)
{
src++;
dst++;
{
src++;
dst++;
@@
-381,7
+379,7
@@
void gPixmap::line(const gRegion &clip, ePoint start, ePoint dst, gColor color)
if (clip.rects.empty())
return;
if (clip.rects.empty())
return;
- __u32 col;
+ __u32 col
= 0
;
if (surface->bpp == 8)
{
srf8 = (__u8*)surface->data;
if (surface->bpp == 8)
{
srf8 = (__u8*)surface->data;
@@
-440,7
+438,7
@@
void gPixmap::line(const gRegion &clip, ePoint start, ePoint dst, gColor color)
do
{
++a;
do
{
++a;
- if (a == clip.rects.size())
+ if (
(unsigned int)
a == clip.rects.size())
a = 0;
if (a == lasthit)
{
a = 0;
if (a == lasthit)
{