Mercurial > sdl-ios-xcode
comparison src/video/maccommon/SDL_macwm.c @ 1662:782fd950bd46 SDL-1.3
Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API.
WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid.
The code is now run through a consistent indent format:
indent -i4 -nut -nsc -br -ce
The headers are being converted to automatically generate doxygen documentation.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 28 May 2006 13:04:16 +0000 |
parents | d910939febfa |
children | 4da1ee79c9af |
comparison
equal
deleted
inserted
replaced
1661:281d3f4870e5 | 1662:782fd950bd46 |
---|---|
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: */ |