src/video/qtopia/SDL_QWin.cc
branchSDL-1.3
changeset 1664 cd3db072ba8a
parent 1663 11775724e3fe
child 1665 28193f833b2b
     1.1 --- a/src/video/qtopia/SDL_QWin.cc	Sun May 28 13:29:03 2006 +0000
     1.2 +++ b/src/video/qtopia/SDL_QWin.cc	Sun May 28 18:16:36 2006 +0000
     1.3 @@ -265,12 +265,12 @@
     1.4  }
     1.5  
     1.6  // desktop, SL-A300 etc
     1.7 -bool
     1.8 -SDL_QWin::repaintRotation0 (const QRect & rect)
     1.9 +/* *INDENT-OFF* */
    1.10 +bool SDL_QWin::repaintRotation0 (const QRect & rect)
    1.11  {
    1.12      if (my_image->width () == width ()) {
    1.13 -        uchar *fb = (uchar *) my_painter->frameBuffer ();
    1.14 -        uchar *buf = (uchar *) my_image->bits ();
    1.15 +        uchar * fb = (uchar *) my_painter->frameBuffer ();
    1.16 +        uchar * buf = (uchar *) my_image->bits ();
    1.17          if (rect == my_image->rect ()) {
    1.18              SDL_memcpy (fb, buf, width () * height () * 2);
    1.19          } else {
    1.20 @@ -279,8 +279,7 @@
    1.21              int fblineadd = my_painter->lineStep ();
    1.22              int buflineadd = my_image->bytesPerLine ();
    1.23              fb += (rect.left () << 1) + rect.top () * my_painter->lineStep ();
    1.24 -            buf +=
    1.25 -                (rect.left () << 1) + rect.top () * my_image->bytesPerLine ();
    1.26 +            buf += (rect.left () << 1) + rect.top () * my_image->bytesPerLine ();
    1.27              while (h--) {
    1.28                  SDL_memcpy (fb, buf, wd);
    1.29                  fb += fblineadd;
    1.30 @@ -295,21 +294,22 @@
    1.31  #endif
    1.32      return true;
    1.33  }
    1.34 +/* *INDENT-ON* */
    1.35  
    1.36  
    1.37  // Sharp Zaurus SL-5500 etc 
    1.38 -bool
    1.39 -SDL_QWin::repaintRotation3 (const QRect & rect)
    1.40 +/* *INDENT-OFF* */
    1.41 +bool SDL_QWin::repaintRotation3 (const QRect & rect)
    1.42  {
    1.43      if (my_image->width () == width ()) {
    1.44 -        ushort *fb = (ushort *) my_painter->frameBuffer ();
    1.45 -        ushort *buf = (ushort *) my_image->bits ();
    1.46 +        ushort * fb = (ushort *) my_painter->frameBuffer ();
    1.47 +        ushort * buf = (ushort *) my_image->bits ();
    1.48          gs_fastRotateBlit_3 (fb, buf, rect);
    1.49      } else {
    1.50          // landscape mode
    1.51          if (screenRotation == SDL_QT_ROTATION_90) {
    1.52 -            uchar *fb = (uchar *) my_painter->frameBuffer ();
    1.53 -            uchar *buf = (uchar *) my_image->bits ();
    1.54 +            uchar * fb = (uchar *) my_painter->frameBuffer ();
    1.55 +            uchar * buf = (uchar *) my_image->bits ();
    1.56              if (rect == my_image->rect ()) {
    1.57                  SDL_memcpy (fb, buf, width () * height () * 2);
    1.58              } else {
    1.59 @@ -336,8 +336,8 @@
    1.60              int buflineadd = my_image->bytesPerLine () - (rect.width () << 1);
    1.61              int w;
    1.62  
    1.63 -            uchar *fb = (uchar *) my_painter->frameBuffer ();
    1.64 -            uchar *buf = (uchar *) my_image->bits ();
    1.65 +            uchar * fb = (uchar *) my_painter->frameBuffer ();
    1.66 +            uchar * buf = (uchar *) my_image->bits ();
    1.67  
    1.68              fb +=
    1.69                  ((my_painter->width () -
    1.70 @@ -363,10 +363,11 @@
    1.71      }
    1.72      return true;
    1.73  }
    1.74 +/* *INDENT-ON* */
    1.75  
    1.76  // ipaq 3800...
    1.77 -bool
    1.78 -SDL_QWin::repaintRotation1 (const QRect & rect)
    1.79 +/* *INDENT-OFF* */
    1.80 +bool SDL_QWin::repaintRotation1 (const QRect & rect)
    1.81  {
    1.82      if (my_image->width () == width ()) {
    1.83          ushort *fb = (ushort *) my_painter->frameBuffer ();
    1.84 @@ -377,6 +378,7 @@
    1.85      }
    1.86      return true;
    1.87  }
    1.88 +/* *INDENT-ON* */
    1.89  
    1.90  void
    1.91  SDL_QWin::repaintRect (const QRect & rect)