src/video/win32/SDL_win32mouse.c
changeset 2990 502adab079a4
parent 2980 8789e4b0e0e7
child 3097 0d12e8f1de3c
     1.1 --- a/src/video/win32/SDL_win32mouse.c	Sun Jan 04 17:10:04 2009 +0000
     1.2 +++ b/src/video/win32/SDL_win32mouse.c	Sun Jan 04 17:14:27 2009 +0000
     1.3 @@ -85,7 +85,8 @@
     1.4              continue;
     1.5          }
     1.6          buffer = SDL_malloc((tmp + 1) * sizeof(char));
     1.7 -        key_name = SDL_malloc((tmp + SDL_strlen(reg_key_root) + 1) * sizeof(char));
     1.8 +        key_name =
     1.9 +            SDL_malloc((tmp + SDL_strlen(reg_key_root) + 1) * sizeof(char));
    1.10  
    1.11          /* we're getting the device registry path and polishing it to get it's name,
    1.12             surely there must be an easier way, but we haven't found it yet */
    1.13 @@ -126,7 +127,7 @@
    1.14              }
    1.15          }
    1.16  
    1.17 -		buffer -= 4;
    1.18 +        buffer -= 4;
    1.19  
    1.20          if (is_rdp == 1) {
    1.21              SDL_free(buffer);
    1.22 @@ -178,7 +179,8 @@
    1.23              int cursors;
    1.24              data->WTInfoA(WTI_DEVICES, DVC_NPRESSURE, &pressure);
    1.25              data->WTInfoA(WTI_DEVICES, DVC_NCSRTYPES, &cursors);
    1.26 -            SDL_AddMouse(&mouse, device_name, pressure.axMax, pressure.axMin, cursors);
    1.27 +            SDL_AddMouse(&mouse, device_name, pressure.axMax, pressure.axMin,
    1.28 +                         cursors);
    1.29          } else {
    1.30              SDL_AddMouse(&mouse, device_name, 0, 0, 1);
    1.31          }