Home | History | Annotate | Download | only in qtopia

Lines Matching refs:rect

131 		      const QRect& rect )
137 startx = rect.left() >> 1;
138 starty = rect.top() >> 1;
139 width = ((rect.right() - rect.left()) >> 1) + 2;
140 height = ((rect.bottom() - rect.top()) >> 1) + 2;
188 const QRect& rect ) {
193 startx = rect.left() >> 1;
194 starty = rect.top() >> 1;
195 width = ((rect.right() - rect.left()) >> 1) + 2;
196 height = ((rect.bottom() - rect.top()) >> 1) + 2;
242 bool SDL_QWin::repaintRotation0(const QRect& rect) {
246 if(rect == my_image->rect()) {
249 int h = rect.height();
250 int wd = rect.width()<<1;
253 fb += (rect.left()<<1) + rect.top() * my_painter->lineStep();
254 buf += (rect.left()<<1) + rect.top() * my_image->bytesPerLine();
265 my_painter->fillRect( rect, QBrush( Qt::NoBrush ) );
272 bool SDL_QWin::repaintRotation3(const QRect& rect) {
276 gs_fastRotateBlit_3(fb, buf, rect);
282 if(rect == my_image->rect()) {
285 int h = rect.height();
286 int wd = rect.width()<<1;
289 fb += (rect.left()<<1) + rect.top() * my_painter->lineStep();
290 buf += (rect.left()<<1) + rect.top() * my_image->bytesPerLine();
298 int h = rect.height();
299 int wd = rect.width();
300 int fblineadd = my_painter->lineStep() - (rect.width() << 1);
301 int buflineadd = my_image->bytesPerLine() - (rect.width() << 1);
307 fb += ((my_painter->width() - (rect.top() + rect.height())) *
308 my_painter->lineStep()) + ((my_painter->height() - ((rect.left() +
309 rect.width()))) << 1);
311 buf += my_image->bytesPerLine() * (rect.top() + rect.height()) -
312 (((my_image->width() - (rect.left() + rect.width())) << 1) + 2);
326 bool SDL_QWin::repaintRotation1(const QRect& rect) {
330 gs_fastRotateBlit_1(fb, buf, rect);
337 void SDL_QWin::repaintRect(const QRect& rect) {
338 if(!my_painter || !rect.width() || !rect.height()) {
345 if(repaintRotation3(rect)) { return; }
348 if(repaintRotation1(rect)) { return; }
351 if(repaintRotation0(rect)) { return; }
355 my_painter->drawImage(rect.topLeft(), *my_image, rect);
362 repaintRect(ev->rect());