Rev 8394 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8394 | Rev 8395 | ||
---|---|---|---|
Line 236... | Line 236... | ||
236 | sub [_length], sizeof.gif.ImageDescriptor |
236 | sub [_length], sizeof.gif.ImageDescriptor |
237 | jc .error |
237 | jc .error |
238 | movzx eax, [ebx + gif.ImageDescriptor.Width] |
238 | movzx eax, [ebx + gif.ImageDescriptor.Width] |
239 | movzx ecx, [ebx + gif.ImageDescriptor.Height] |
239 | movzx ecx, [ebx + gif.ImageDescriptor.Height] |
240 | push edx |
240 | push edx |
241 | stdcall img._.resize_data, [img], eax, ecx |
241 | stdcall img.resize_data, [img], eax, ecx |
242 | pop edx |
242 | pop edx |
243 | or eax, eax |
243 | or eax, eax |
244 | jz .error |
244 | jz .error |
Line 245... | Line 245... | ||
245 | 245 | ||
Line 873... | Line 873... | ||
873 | and [edx + Image.Data], 0 |
873 | and [edx + Image.Data], 0 |
874 | push edx |
874 | push edx |
875 | movzx eax, [ebx + sizeof.gif.Image + gif.LogicalScreenDescriptor.ScreenHeight] |
875 | movzx eax, [ebx + sizeof.gif.Image + gif.LogicalScreenDescriptor.ScreenHeight] |
876 | push eax |
876 | push eax |
877 | movzx eax, [ebx + sizeof.gif.Image + gif.LogicalScreenDescriptor.ScreenWidth] |
877 | movzx eax, [ebx + sizeof.gif.Image + gif.LogicalScreenDescriptor.ScreenWidth] |
878 | stdcall img._.resize_data, edx, eax |
878 | stdcall img.resize_data, edx, eax |
879 | pop edx |
879 | pop edx |
880 | test eax, eax |
880 | test eax, eax |
881 | jz .palette_nomem |
881 | jz .palette_nomem |
882 | @@: |
882 | @@: |
883 | ; copy final palette to Image.Palette |
883 | ; copy final palette to Image.Palette |
Line 987... | Line 987... | ||
987 | mov byte [edx + Image.Type], Image.bpp24 |
987 | mov byte [edx + Image.Type], Image.bpp24 |
988 | push edx |
988 | push edx |
989 | movzx eax, [ebx + gif.Header.lsd.ScreenHeight] |
989 | movzx eax, [ebx + gif.Header.lsd.ScreenHeight] |
990 | push eax |
990 | push eax |
991 | movzx eax, [ebx + gif.Header.lsd.ScreenWidth] |
991 | movzx eax, [ebx + gif.Header.lsd.ScreenWidth] |
992 | stdcall img._.resize_data, edx, eax |
992 | stdcall img.resize_data, edx, eax |
993 | pop edx |
993 | pop edx |
994 | test eax, eax |
994 | test eax, eax |
995 | jz .convrgb_nomem |
995 | jz .convrgb_nomem |
996 | push esi |
996 | push esi |
997 | mov edi, [edx + Image.Data] |
997 | mov edi, [edx + Image.Data] |
Line 1090... | Line 1090... | ||
1090 | mov byte [edx + Image.Type], Image.bpp24 |
1090 | mov byte [edx + Image.Type], Image.bpp24 |
1091 | push edx |
1091 | push edx |
1092 | movzx eax, [ebx + gif.Header.lsd.ScreenHeight] |
1092 | movzx eax, [ebx + gif.Header.lsd.ScreenHeight] |
1093 | push eax |
1093 | push eax |
1094 | movzx eax, [ebx + gif.Header.lsd.ScreenWidth] |
1094 | movzx eax, [ebx + gif.Header.lsd.ScreenWidth] |
1095 | stdcall img._.resize_data, edx, eax |
1095 | stdcall img.resize_data, edx, eax |
1096 | pop edx |
1096 | pop edx |
1097 | test eax, eax |
1097 | test eax, eax |
1098 | jz .rgb_nomem |
1098 | jz .rgb_nomem |
1099 | push esi |
1099 | push esi |
1100 | mov edi, [edx + Image.Data] |
1100 | mov edi, [edx + Image.Data] |