# HG changeset patch # User Sam Lantinga # Date 1229781234 0 # Node ID 67f84eb26ea1db4e99ab6b445c0a39c13ee3a99d # Parent 32e8bbba1e94ffad4239a1b792932ca7854bc289 Fixed crash in software line drawing diff -r 32e8bbba1e94 -r 67f84eb26ea1 src/video/SDL_renderer_sw.c --- a/src/video/SDL_renderer_sw.c Sat Dec 20 13:14:28 2008 +0000 +++ b/src/video/SDL_renderer_sw.c Sat Dec 20 13:53:54 2008 +0000 @@ -565,7 +565,7 @@ if (data->renderer->LockTexture(data->renderer, data->texture[data->current_texture], - NULL, 1, &data->surface.pixels, + &data->surface.clip_rect, 1, &data->surface.pixels, &data->surface.pitch) < 0) { return -1; }