diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/AVS | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AVS')
-rw-r--r-- | plugins/AVS/acc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/AVS/acc.cpp b/plugins/AVS/acc.cpp index f62009b43d..a804a09600 100644 --- a/plugins/AVS/acc.cpp +++ b/plugins/AVS/acc.cpp @@ -288,11 +288,11 @@ void AnimatedGifMountFrame(ACCData* data, int page) RGBQUAD *pal = fei->FI_GetPalette(dib);
bool have_transparent = false;
int transparent_color = -1;
- if( fei->FI_IsTransparent(dib) ) {
+ if ( fei->FI_IsTransparent(dib) ) {
int count = fei->FI_GetTransparencyCount(dib);
BYTE *table = fei->FI_GetTransparencyTable(dib);
- for( int i = 0; i < count; i++ ) {
- if( table[i] == 0 ) {
+ for ( int i = 0; i < count; i++ ) {
+ if ( table[i] == 0 ) {
have_transparent = true;
transparent_color = i;
break;
@@ -301,11 +301,11 @@ void AnimatedGifMountFrame(ACCData* data, int page) }
//copy page data into logical buffer, with full alpha opaqueness
- for( int y = 0; y < data->ag.frame.height; y++ ) {
+ for ( int y = 0; y < data->ag.frame.height; y++ ) {
RGBQUAD *scanline = (RGBQUAD *)fei->FI_GetScanLine(data->ag.dib, data->ag.logicalHeight - (y + data->ag.frame.top) - 1) + data->ag.frame.left;
BYTE *pageline = fei->FI_GetScanLine(dib, data->ag.frame.height - y - 1);
- for( int x = 0; x < data->ag.frame.width; x++ ) {
- if( !have_transparent || *pageline != transparent_color ) {
+ for ( int x = 0; x < data->ag.frame.width; x++ ) {
+ if ( !have_transparent || *pageline != transparent_color ) {
*scanline = pal[*pageline];
scanline->rgbReserved = 255;
}
|