src/video/photon/SDL_ph_events.c
changeset 1643 51038e80ae59
parent 1482 141528317f4f
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
     1.1 --- a/src/video/photon/SDL_ph_events.c	Mon Apr 17 05:38:33 2006 +0000
     1.2 +++ b/src/video/photon/SDL_ph_events.c	Mon Apr 17 06:47:23 2006 +0000
     1.3 @@ -245,15 +245,19 @@
     1.4                     int lockedstate=current_overlay->hwdata->locked;
     1.5                     int chromastate=current_overlay->hwdata->ischromakey;
     1.6                     int error;
     1.7 -                   SDL_Rect target;
     1.8 +                   SDL_Rect src, dst;
     1.9  
    1.10                     current_overlay->hwdata->locked=1;
    1.11 -                   target.x=current_overlay->hwdata->CurrentViewPort.pos.x;
    1.12 -                   target.y=current_overlay->hwdata->CurrentViewPort.pos.y;
    1.13 -                   target.w=current_overlay->hwdata->CurrentViewPort.size.w;
    1.14 -                   target.h=current_overlay->hwdata->CurrentViewPort.size.h;
    1.15 +                   src.x = 0;
    1.16 +                   src.y = 0;
    1.17 +                   src.w = current_overlay->w;
    1.18 +                   src.y = current_overlay->h;
    1.19 +                   dst.x=current_overlay->hwdata->CurrentViewPort.pos.x;
    1.20 +                   dst.y=current_overlay->hwdata->CurrentViewPort.pos.y;
    1.21 +                   dst.w=current_overlay->hwdata->CurrentViewPort.size.w;
    1.22 +                   dst.h=current_overlay->hwdata->CurrentViewPort.size.h;
    1.23                     current_overlay->hwdata->ischromakey=0;
    1.24 -                   error=ph_DisplayYUVOverlay(this, current_overlay, &target);
    1.25 +                   error=ph_DisplayYUVOverlay(this, current_overlay, &src, &dst);
    1.26                     if (!error)
    1.27                     {
    1.28                         current_overlay->hwdata->ischromakey=chromastate;
    1.29 @@ -306,15 +310,19 @@
    1.30                      {
    1.31                          int lockedstate=current_overlay->hwdata->locked;
    1.32                          int error;
    1.33 -                        SDL_Rect target;
    1.34 +                        SDL_Rect src, dst;
    1.35  
    1.36                          current_overlay->hwdata->locked=1;
    1.37 -                        target.x=current_overlay->hwdata->CurrentViewPort.pos.x;
    1.38 -                        target.y=current_overlay->hwdata->CurrentViewPort.pos.y;
    1.39 -                        target.w=current_overlay->hwdata->CurrentViewPort.size.w;
    1.40 -                        target.h=current_overlay->hwdata->CurrentViewPort.size.h;
    1.41 +                        src.x = 0;
    1.42 +                        src.y = 0;
    1.43 +                        src.w = current_overlay->w;
    1.44 +                        src.y = current_overlay->h;
    1.45 +                        dst.x=current_overlay->hwdata->CurrentViewPort.pos.x;
    1.46 +                        dst.y=current_overlay->hwdata->CurrentViewPort.pos.y;
    1.47 +                        dst.w=current_overlay->hwdata->CurrentViewPort.size.w;
    1.48 +                        dst.h=current_overlay->hwdata->CurrentViewPort.size.h;
    1.49                          current_overlay->hwdata->forcedredraw=1;
    1.50 -                        error=ph_DisplayYUVOverlay(this, current_overlay, &target);
    1.51 +                        error=ph_DisplayYUVOverlay(this, current_overlay, &src, &dst);
    1.52                          if (!error)
    1.53                          {
    1.54                              current_overlay->hwdata->forcedredraw=0;