Lines 928-933
void Splash::drawPixel(int x, int y, Spl
Link Here
|
928 |
int alpha2, ialpha2; |
928 |
int alpha2, ialpha2; |
929 |
Guchar t; |
929 |
Guchar t; |
930 |
|
930 |
|
|
|
931 |
if ( (unsigned) x >= (unsigned) bitmap->getWidth() || |
932 |
(unsigned) y >= (unsigned) bitmap->getHeight()) |
933 |
return; |
934 |
|
931 |
if (noClip || state->clip->test(x, y)) { |
935 |
if (noClip || state->clip->test(x, y)) { |
932 |
if (alpha != 1 || softMask || state->blendFunc) { |
936 |
if (alpha != 1 || softMask || state->blendFunc) { |
933 |
blendFunc = state->blendFunc ? state->blendFunc : &blendNormal; |
937 |
blendFunc = state->blendFunc ? state->blendFunc : &blendNormal; |
Lines 1195-1200
void Splash::drawSpan(int x0, int x1, in
Link Here
|
1195 |
updateModY(y); |
1199 |
updateModY(y); |
1196 |
} |
1200 |
} |
1197 |
|
1201 |
|
|
|
1202 |
if ((unsigned) x0 >= (unsigned) bitmap->getWidth() || |
1203 |
(unsigned) x1 >= (unsigned) bitmap->getWidth() || |
1204 |
(unsigned) y >= (unsigned) bitmap->getHeight()) |
1205 |
return; |
1206 |
|
1198 |
if (alpha != 1 || softMask || state->blendFunc) { |
1207 |
if (alpha != 1 || softMask || state->blendFunc) { |
1199 |
blendFunc = state->blendFunc ? state->blendFunc : &blendNormal; |
1208 |
blendFunc = state->blendFunc ? state->blendFunc : &blendNormal; |
1200 |
if (softMask) { |
1209 |
if (softMask) { |
Lines 1825-1830
void Splash::xorSpan(int x0, int x1, int
Link Here
|
1825 |
updateModY(y); |
1834 |
updateModY(y); |
1826 |
} |
1835 |
} |
1827 |
|
1836 |
|
|
|
1837 |
if ((unsigned) x0 >= (unsigned) bitmap->getWidth() || |
1838 |
(unsigned) x1 >= (unsigned) bitmap->getWidth() || |
1839 |
(unsigned) y >= (unsigned) bitmap->getHeight()) |
1840 |
return; |
1841 |
|
1828 |
switch (bitmap->mode) { |
1842 |
switch (bitmap->mode) { |
1829 |
case splashModeMono1: |
1843 |
case splashModeMono1: |
1830 |
p = &bitmap->data[y * bitmap->rowSize + (x0 >> 3)]; |
1844 |
p = &bitmap->data[y * bitmap->rowSize + (x0 >> 3)]; |