Lines Matching refs:dRect
36 …void Blitter::clear(void *pixel, sw::Format format, Surface *dest, const SliceRect &dRect, unsigne… in clear() argument
38 if(fastClear(pixel, format, dest, dRect, rgbaMask)) in clear()
45 blit(color, sRect, dest, dRect, {rgbaMask}); in clear()
49 …bool Blitter::fastClear(void *pixel, sw::Format format, Surface *dest, const SliceRect &dRect, uns… in fastClear() argument
105 …uint8_t *slice = (uint8_t*)dest->lock(dRect.x0, dRect.y0, dRect.slice, sw::LOCK_WRITEONLY, sw::PUB… in fastClear()
114 for(int i = dRect.y0; i < dRect.y1; i++) in fastClear()
116 sw::clear((uint16_t*)d, packed, dRect.x1 - dRect.x0); in fastClear()
121 for(int i = dRect.y0; i < dRect.y1; i++) in fastClear()
123 sw::clear((uint32_t*)d, packed, dRect.x1 - dRect.x0); in fastClear()
152 SliceRect dRect = destRect; in blit() local
159 swap(dRect.x0, dRect.x1); in blit()
164 swap(dRect.y0, dRect.y1); in blit()
169 dest->lockInternal(0, 0, dRect.slice, sw::LOCK_WRITEONLY, sw::PUBLIC); in blit()
171 float w = sRect.width() / dRect.width(); in blit()
172 float h = sRect.height() / dRect.height(); in blit()
174 float xStart = sRect.x0 + (0.5f - dRect.x0) * w; in blit()
175 float yStart = sRect.y0 + (0.5f - dRect.y0) * h; in blit()
177 for(int j = dRect.y0; j < dRect.y1; j++) in blit()
181 for(int i = dRect.x0; i < dRect.x1; i++) in blit()
1395 Rect dRect = destRect; in blitReactor() local
1399 swap(dRect.x0, dRect.x1); in blitReactor()
1404 swap(dRect.y0, dRect.y1); in blitReactor()
1455 data.w = sRect.width() / dRect.width(); in blitReactor()
1456 data.h = sRect.height() / dRect.height(); in blitReactor()
1457 data.x0 = sRect.x0 + (0.5f - dRect.x0) * data.w; in blitReactor()
1458 data.y0 = sRect.y0 + (0.5f - dRect.y0) * data.h; in blitReactor()
1460 data.x0d = dRect.x0; in blitReactor()
1461 data.x1d = dRect.x1; in blitReactor()
1462 data.y0d = dRect.y0; in blitReactor()
1463 data.y1d = dRect.y1; in blitReactor()