comparison src/video/maccommon/SDL_macwm.c @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents d910939febfa
children
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
31 #endif 31 #endif
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 Mac_SetCaption(_THIS, const char *title, const char *icon) 36 void
37 Mac_SetCaption(_THIS, const char *title, const char *icon)
37 { 38 {
38 /* 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 */
39 Str255 ptitle; /* MJS */ 40 Str255 ptitle; /* MJS */
40 ptitle[0] = strlen (title); 41 ptitle[0] = strlen(title);
41 SDL_memcpy(ptitle+1, title, ptitle[0]); /* MJS */ 42 SDL_memcpy(ptitle + 1, title, ptitle[0]); /* MJS */
42 if (SDL_Window) 43 if (SDL_Window)
43 SetWTitle(SDL_Window, ptitle); /* MJS */ 44 SetWTitle(SDL_Window, ptitle); /* MJS */
44 } 45 }
46
47 /* vi: set ts=4 sw=4 expandtab: */