diff src/video/x11/SDL_x11render.c @ 2874:36e312e0fac0

indent
author Sam Lantinga <slouken@libsdl.org>
date Tue, 16 Dec 2008 17:44:10 +0000
parents b801df19835f
children 04e89201f6ed
line wrap: on
line diff
--- a/src/video/x11/SDL_x11render.c	Tue Dec 16 17:41:03 2008 +0000
+++ b/src/video/x11/SDL_x11render.c	Tue Dec 16 17:44:10 2008 +0000
@@ -236,7 +236,9 @@
     data->current_pixmap = 0;
 
     /* Get the format of the window */
-    if (!SDL_PixelFormatEnumToMasks(display->current_mode.format, &bpp, &Rmask, &Gmask, &Bmask, &Amask)) {
+    if (!SDL_PixelFormatEnumToMasks
+        (display->current_mode.format, &bpp, &Rmask, &Gmask, &Bmask,
+         &Amask)) {
         SDL_SetError("Unknown display format");
         X11_DestroyRenderer(renderer);
         return NULL;
@@ -325,7 +327,7 @@
     } else {
         /* The image/pixmap depth must be the same as the window or you
            get a BadMatch error when trying to putimage or copyarea.
-        */
+         */
         if (texture->format != display->current_mode.format) {
             SDL_SetError("Texture format doesn't match window format");
             return -1;
@@ -364,7 +366,9 @@
             data->pixels = shminfo->shmaddr;
 
             data->image =
-                XShmCreateImage(renderdata->display, renderdata->visual, renderdata->depth, ZPixmap, shminfo->shmaddr, shminfo, texture->w, texture->h);
+                XShmCreateImage(renderdata->display, renderdata->visual,
+                                renderdata->depth, ZPixmap, shminfo->shmaddr,
+                                shminfo, texture->w, texture->h);
             if (!data->image) {
                 XShmDetach(renderdata->display, shminfo);
                 XSync(renderdata->display, False);
@@ -386,7 +390,11 @@
             }
 
             data->image =
-                XCreateImage(renderdata->display, renderdata->visual, renderdata->depth, ZPixmap, 0, data->pixels, texture->w, texture->h, SDL_BYTESPERPIXEL(data->format) * 8, data->pitch);
+                XCreateImage(renderdata->display, renderdata->visual,
+                             renderdata->depth, ZPixmap, 0, data->pixels,
+                             texture->w, texture->h,
+                             SDL_BYTESPERPIXEL(data->format) * 8,
+                             data->pitch);
             if (!data->image) {
                 X11_DestroyTexture(renderer, texture);
                 SDL_SetError("XCreateImage() failed");
@@ -404,7 +412,10 @@
         }
 
         data->image =
-            XCreateImage(renderdata->display, renderdata->visual, renderdata->depth, ZPixmap, 0, NULL, texture->w, texture->h, SDL_BYTESPERPIXEL(data->format) * 8, data->pitch);
+            XCreateImage(renderdata->display, renderdata->visual,
+                         renderdata->depth, ZPixmap, 0, NULL, texture->w,
+                         texture->h, SDL_BYTESPERPIXEL(data->format) * 8,
+                         data->pitch);
         if (!data->image) {
             X11_DestroyTexture(renderer, texture);
             SDL_SetError("XCreateImage() failed");
@@ -606,8 +617,8 @@
             }
 
             image =
-                XCreateImage(data->display, data->visual, data->depth, ZPixmap,
-                             0, pixels, dstrect->w, dstrect->h,
+                XCreateImage(data->display, data->visual, data->depth,
+                             ZPixmap, 0, pixels, dstrect->w, dstrect->h,
                              SDL_BYTESPERPIXEL(texturedata->format) * 8,
                              pitch);
             if (!image) {