Rev 1308 | Rev 6733 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1308 | Rev 2733 | ||
---|---|---|---|
Line 237... | Line 237... | ||
237 | cmp [.color_type], 2 |
237 | cmp [.color_type], 2 |
238 | jz @f |
238 | jz @f |
239 | mov al, Image.bpp32 |
239 | mov al, Image.bpp32 |
240 | cmp [.color_type], 6 |
240 | cmp [.color_type], 6 |
241 | jz @f |
241 | jz @f |
242 | mov al, Image.bpp8 |
242 | mov al, Image.bpp8i |
243 | @@: |
243 | @@: |
244 | stdcall img.create, [.width], [.height], eax |
244 | stdcall img.create, [.width], [.height], eax |
245 | test eax, eax |
245 | test eax, eax |
246 | jz .invalid_chunk |
246 | jz .invalid_chunk |
247 | mov [.image], eax |
247 | mov [.image], eax |