src/video/maccommon/SDL_macwm.c
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
equal deleted inserted replaced
1667:1fddae038bc8 1668:4da1ee79c9af
    32 
    32 
    33 #include "SDL_stdinc.h"
    33 #include "SDL_stdinc.h"
    34 #include "SDL_macwm_c.h"
    34 #include "SDL_macwm_c.h"
    35 
    35 
    36 void
    36 void
    37 Mac_SetCaption (_THIS, const char *title, const char *icon)
    37 Mac_SetCaption(_THIS, const char *title, const char *icon)
    38 {
    38 {
    39     /* Don't convert C to P string in place, because it may be read-only */
    39     /* Don't convert C to P string in place, because it may be read-only */
    40     Str255 ptitle;              /* MJS */
    40     Str255 ptitle;              /* MJS */
    41     ptitle[0] = strlen (title);
    41     ptitle[0] = strlen(title);
    42     SDL_memcpy (ptitle + 1, title, ptitle[0]);  /* MJS */
    42     SDL_memcpy(ptitle + 1, title, ptitle[0]);   /* MJS */
    43     if (SDL_Window)
    43     if (SDL_Window)
    44         SetWTitle (SDL_Window, ptitle); /* MJS */
    44         SetWTitle(SDL_Window, ptitle);  /* MJS */
    45 }
    45 }
    46 
    46 
    47 /* vi: set ts=4 sw=4 expandtab: */
    47 /* vi: set ts=4 sw=4 expandtab: */