comparison src/video/SDL_fillrect.c @ 2913:ffae53de58f4

Don't unlock a surface we didn't lock
author Sam Lantinga <slouken@libsdl.org>
date Wed, 24 Dec 2008 12:17:25 +0000
parents 32e8bbba1e94
children 7e30c2dc7783
comparison
equal deleted inserted replaced
2912:1d50666ed3d5 2913:ffae53de58f4
354 SDL_FillRect4(pixels, dst->pitch, color, dstrect->w, dstrect->h); 354 SDL_FillRect4(pixels, dst->pitch, color, dstrect->w, dstrect->h);
355 break; 355 break;
356 } 356 }
357 } 357 }
358 358
359 SDL_UnlockSurface(dst);
360
361 /* We're done! */ 359 /* We're done! */
362 return (0); 360 return (0);
363 } 361 }
364 362
365 /* vi: set ts=4 sw=4 expandtab: */ 363 /* vi: set ts=4 sw=4 expandtab: */