diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llwindow/llwindowsdl.cpp | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/linden/indra/llwindow/llwindowsdl.cpp b/linden/indra/llwindow/llwindowsdl.cpp index 2fc1007..7d42bce 100644 --- a/linden/indra/llwindow/llwindowsdl.cpp +++ b/linden/indra/llwindow/llwindowsdl.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -2230,11 +2230,11 @@ static SDL_Cursor *makeSDLCursorFromBMP(const char *filename, int hotx, int hoty | |||
2230 | bmpsurface->w, | 2230 | bmpsurface->w, |
2231 | bmpsurface->h, | 2231 | bmpsurface->h, |
2232 | 32, | 2232 | 32, |
2233 | 0xFFU, | 2233 | SDL_SwapLE32(0xFFU), |
2234 | 0xFF00U, | 2234 | SDL_SwapLE32(0xFF00U), |
2235 | 0xFF0000U, | 2235 | SDL_SwapLE32(0xFF0000U), |
2236 | 0xFF000000U); | 2236 | SDL_SwapLE32(0xFF000000U)); |
2237 | SDL_FillRect(cursurface, NULL, 0x00000000U); | 2237 | SDL_FillRect(cursurface, NULL, SDL_SwapLE32(0x00000000U)); |
2238 | 2238 | ||
2239 | // Blit the cursor pixel data onto a 32-bit RGBA surface so we | 2239 | // Blit the cursor pixel data onto a 32-bit RGBA surface so we |
2240 | // only have to cope with processing one type of pixel format. | 2240 | // only have to cope with processing one type of pixel format. |
@@ -2253,13 +2253,13 @@ static SDL_Cursor *makeSDLCursorFromBMP(const char *filename, int hotx, int hoty | |||
2253 | // is inferred by color-keying against 200,200,200 | 2253 | // is inferred by color-keying against 200,200,200 |
2254 | for (i=0; i<cursurface->h; ++i) { | 2254 | for (i=0; i<cursurface->h; ++i) { |
2255 | for (j=0; j<cursurface->w; ++j) { | 2255 | for (j=0; j<cursurface->w; ++j) { |
2256 | unsigned char *pixelp = | 2256 | U8 *pixelp = |
2257 | ((unsigned char *)cursurface->pixels) | 2257 | ((U8*)cursurface->pixels) |
2258 | + cursurface->pitch * i | 2258 | + cursurface->pitch * i |
2259 | + j*cursurface->format->BytesPerPixel; | 2259 | + j*cursurface->format->BytesPerPixel; |
2260 | unsigned char srcred = pixelp[0]; | 2260 | U8 srcred = pixelp[0]; |
2261 | unsigned char srcgreen = pixelp[1]; | 2261 | U8 srcgreen = pixelp[1]; |
2262 | unsigned char srcblue = pixelp[2]; | 2262 | U8 srcblue = pixelp[2]; |
2263 | BOOL mask_bit = (srcred != 200) | 2263 | BOOL mask_bit = (srcred != 200) |
2264 | || (srcgreen != 200) | 2264 | || (srcgreen != 200) |
2265 | || (srcblue != 200); | 2265 | || (srcblue != 200); |
@@ -2741,11 +2741,6 @@ void spawn_web_browser(const char* escaped_url) | |||
2741 | llinfos << "spawn_web_browser returning." << llendl; | 2741 | llinfos << "spawn_web_browser returning." << llendl; |
2742 | } | 2742 | } |
2743 | 2743 | ||
2744 | void shell_open( const char* file_path ) | ||
2745 | { | ||
2746 | // *TODO: This function is deprecated and should probably go away. | ||
2747 | llwarns << "Deprecated shell_open(): " << file_path << llendl; | ||
2748 | } | ||
2749 | 2744 | ||
2750 | void *LLWindowSDL::getPlatformWindow() | 2745 | void *LLWindowSDL::getPlatformWindow() |
2751 | { | 2746 | { |