diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llwindow/llwindow.cpp | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/llwindow/llwindow.cpp')
-rw-r--r-- | linden/indra/llwindow/llwindow.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/linden/indra/llwindow/llwindow.cpp b/linden/indra/llwindow/llwindow.cpp index 9963228..ffb6393 100644 --- a/linden/indra/llwindow/llwindow.cpp +++ b/linden/indra/llwindow/llwindow.cpp | |||
@@ -40,8 +40,6 @@ | |||
40 | #include "llwindowwin32.h" | 40 | #include "llwindowwin32.h" |
41 | #elif LL_DARWIN | 41 | #elif LL_DARWIN |
42 | #include "llwindowmacosx.h" | 42 | #include "llwindowmacosx.h" |
43 | #elif LL_LINUX | ||
44 | #include "llwindowlinux.h" // currently just a dummy wrapper | ||
45 | #endif | 43 | #endif |
46 | 44 | ||
47 | #include "llerror.h" | 45 | #include "llerror.h" |
@@ -287,6 +285,20 @@ void LLWindow::setCallbacks(LLWindowCallbacks *callbacks) | |||
287 | } | 285 | } |
288 | } | 286 | } |
289 | 287 | ||
288 | // static | ||
289 | std::string LLWindow::getFontListSans() | ||
290 | { | ||
291 | #if LL_WINDOWS | ||
292 | return LLWindowWin32::getFontListSans(); | ||
293 | #elif LL_DARWIN | ||
294 | return LLWindowMacOSX::getFontListSans(); | ||
295 | #elif LL_SDL | ||
296 | return LLWindowSDL::getFontListSans(); | ||
297 | #else | ||
298 | return ""; | ||
299 | #endif | ||
300 | } | ||
301 | |||
290 | #define UTF16_IS_HIGH_SURROGATE(U) ((U16)((U) - 0xD800) < 0x0400) | 302 | #define UTF16_IS_HIGH_SURROGATE(U) ((U16)((U) - 0xD800) < 0x0400) |
291 | #define UTF16_IS_LOW_SURROGATE(U) ((U16)((U) - 0xDC00) < 0x0400) | 303 | #define UTF16_IS_LOW_SURROGATE(U) ((U16)((U) - 0xDC00) < 0x0400) |
292 | #define UTF16_SURROGATE_PAIR_TO_UTF32(H,L) (((H) << 10) + (L) - (0xD800 << 10) - 0xDC00 + 0x00010000) | 304 | #define UTF16_SURROGATE_PAIR_TO_UTF32(H,L) (((H) << 10) + (L) - (0xD800 << 10) - 0xDC00 + 0x00010000) |
@@ -450,10 +462,6 @@ LLWindow* LLWindowManager::createWindow( | |||
450 | new_window = new LLWindowMacOSX( | 462 | new_window = new LLWindowMacOSX( |
451 | title, name, x, y, width, height, flags, | 463 | title, name, x, y, width, height, flags, |
452 | fullscreen, clearBg, disable_vsync, use_gl, ignore_pixel_depth, fsaa_samples); | 464 | fullscreen, clearBg, disable_vsync, use_gl, ignore_pixel_depth, fsaa_samples); |
453 | #elif LL_LINUX | ||
454 | new_window = new LLWindowLinux( | ||
455 | title, name, x, y, width, height, flags, | ||
456 | fullscreen, clearBg, disable_vsync, use_gl, ignore_pixel_depth); | ||
457 | #endif | 465 | #endif |
458 | } | 466 | } |
459 | else | 467 | else |