Home | History | Annotate | Download | only in video

Lines Matching refs:area

132 	cursor->area.x = 0;
133 cursor->area.y = 0;
134 cursor->area.w = w;
135 cursor->area.h = h;
214 SDL_cursor->area.x = (x - SDL_cursor->hot_x);
215 SDL_cursor->area.y = (y - SDL_cursor->hot_y);
330 SDL_cursor->area.x = (x - SDL_cursor->hot_x);
331 SDL_cursor->area.y = (y - SDL_cursor->hot_y);
348 void SDL_MouseRect(SDL_Rect *area)
352 *area = SDL_cursor->area;
353 if ( area->x < 0 ) {
354 area->w += area->x;
355 area->x = 0;
357 if ( area->y < 0 ) {
358 area->h += area->y;
359 area->y = 0;
361 clip_diff = (area->x+area->w)-SDL_VideoSurface->w;
363 area->w = area->w < clip_diff ? 0 : area->w-clip_diff;
365 clip_diff = (area->y+area->h)-SDL_VideoSurface->h;
367 area->h = area->h < clip_diff ? 0 : area->h-clip_diff;
371 static void SDL_DrawCursorFast(SDL_Surface *screen, SDL_Rect *area)
378 data = SDL_cursor->data + area->y * SDL_cursor->area.w/8;
379 mask = SDL_cursor->mask + area->y * SDL_cursor->area.w/8;
392 (SDL_cursor->area.y+area->y)*screen->pitch +
393 SDL_cursor->area.x;
394 dstskip = screen->pitch-area->w;
396 for ( h=area->h; h; h-- ) {
397 for ( w=area->w/8; w; w-- ) {
419 (SDL_cursor->area.y+area->y)*screen->pitch/2 +
420 SDL_cursor->area.x;
421 dstskip = (screen->pitch/2)-area->w;
423 for ( h=area->h; h; h-- ) {
424 for ( w=area->w/8; w; w-- ) {
446 (SDL_cursor->area.y+area->y)*screen->pitch +
447 SDL_cursor->area.x*3;
448 dstskip = screen->pitch-area->w*3;
450 for ( h=area->h; h; h-- ) {
451 for ( w=area->w/8; w; w-- ) {
473 (SDL_cursor->area.y+area->y)*screen->pitch/4 +
474 SDL_cursor->area.x;
475 dstskip = (screen->pitch/4)-area->w;
477 for ( h=area->h; h; h-- ) {
478 for ( w=area->w/8; w; w-- ) {
497 static void SDL_DrawCursorSlow(SDL_Surface *screen, SDL_Rect *area)
507 data = SDL_cursor->data + area->y * SDL_cursor->area.w/8;
508 mask = SDL_cursor->mask + area->y * SDL_cursor->area.w/8;
511 (SDL_cursor->area.y+area->y)*screen->pitch +
512 SDL_cursor->area.x*dstbpp;
513 dstskip = screen->pitch-SDL_cursor->area.w*dstbpp;
515 minx = area->x;
516 maxx = area->x+area->w;
523 for ( h=area->h; h; h-- ) {
524 for ( x=0; x<SDL_cursor->area.w; ++x ) {
541 for ( h=area->h; h; h-- ) {
542 for ( x=0; x<SDL_cursor->area.w; ++x ) {
597 SDL_Rect area;
600 SDL_MouseRect(&area);
601 if ( (area.w == 0) || (area.h == 0) ) {
617 src = (Uint8 *)screen->pixels + area.y * screen->pitch +
618 area.x * screenbpp;
621 w = area.w*screenbpp;
622 h = area.h;
631 area.x -= SDL_cursor->area.x;
632 area.y -= SDL_cursor->area.y;
633 if ( (area.x == 0) && (area.w == SDL_cursor->area.w) ) {
634 SDL_DrawCursorFast(screen, &area);
636 SDL_DrawCursorSlow(screen, &area);
662 SDL_Rect area;
664 SDL_MouseRect(&area);
668 video->UpdateRects(this, 1, &area);
675 SDL_Rect area;
678 SDL_MouseRect(&area);
679 if ( (area.w == 0) || (area.h == 0) ) {
695 dst = (Uint8 *)screen->pixels + area.y * screen->pitch +
696 area.x * screenbpp;
699 w = area.w*screenbpp;
700 h = area.h;
709 SDL_ConvertCursorSave(screen, area.w, area.h);
736 SDL_Rect area;
738 SDL_MouseRect(&area);
740 video->UpdateRects(this, 1, &area);
753 savelen = SDL_cursor->area.w*4*SDL_cursor->area.h;
754 SDL_cursor->area.x = 0;
755 SDL_cursor->area.y = 0;