Mercurial > sdl-ios-xcode
comparison src/video/SDL_renderer_sw.c @ 2889:67f84eb26ea1
Fixed crash in software line drawing
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 20 Dec 2008 13:53:54 +0000 |
parents | 32e8bbba1e94 |
children | 3e7856518a34 |
comparison
equal
deleted
inserted
replaced
2888:32e8bbba1e94 | 2889:67f84eb26ea1 |
---|---|
563 SDL_AddDirtyRect(&data->dirty, &rect); | 563 SDL_AddDirtyRect(&data->dirty, &rect); |
564 } | 564 } |
565 | 565 |
566 if (data->renderer->LockTexture(data->renderer, | 566 if (data->renderer->LockTexture(data->renderer, |
567 data->texture[data->current_texture], | 567 data->texture[data->current_texture], |
568 NULL, 1, &data->surface.pixels, | 568 &data->surface.clip_rect, 1, &data->surface.pixels, |
569 &data->surface.pitch) < 0) { | 569 &data->surface.pitch) < 0) { |
570 return -1; | 570 return -1; |
571 } | 571 } |
572 | 572 |
573 if (renderer->blendMode == SDL_BLENDMODE_NONE) { | 573 if (renderer->blendMode == SDL_BLENDMODE_NONE) { |