ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.40 by root, Sat Apr 15 01:13:46 2006 UTC vs.
Revision 1.41 by root, Sat Apr 15 01:52:53 2006 UTC

217 SDL_RWops *rw = ix 217 SDL_RWops *rw = ix
218 ? SDL_RWFromFile (image, "r") 218 ? SDL_RWFromFile (image, "r")
219 : SDL_RWFromConstMem (image, image_len); 219 : SDL_RWFromConstMem (image, image_len);
220 220
221 if (!rw) 221 if (!rw)
222 croak ("load_image: unable to open file"); 222 croak ("load_image: %s", SDL_GetError ());
223 223
224 surface = IMG_Load_RW (rw, 1); 224 surface = IMG_Load_RW (rw, 1);
225 if (!surface) 225 if (!surface)
226 croak ("load_image: unable to read file"); 226 croak ("load_image: %s", SDL_GetError ());
227 227
228 fmt.palette = NULL; 228 fmt.palette = NULL;
229 fmt.BitsPerPixel = 32; 229 fmt.BitsPerPixel = 32;
230 fmt.BytesPerPixel = 4; 230 fmt.BytesPerPixel = 4;
231 fmt.Rmask = 0x000000ff; 231 fmt.Rmask = 0x000000ff;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines