diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-11-04 11:03:57 +0100 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-11-04 11:03:57 +0100 |
commit | ab5311b9c739cc7da09c460a30305d962e9b3598 (patch) | |
tree | ed8e6e93d60cfbff5ffa900e0b417807007f5959 /indra | |
parent | a39a56e2665156bf3948c421f0afe74fe14f4b2b (diff) |
Make FreeBSD gets what Linux gets in llwindow
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llwindow/llsdl.cpp | 2 | ||||
-rw-r--r-- | indra/llwindow/llwindow.cpp | 10 | ||||
-rw-r--r-- | indra/llwindow/llwindowsdl.h | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/indra/llwindow/llsdl.cpp b/indra/llwindow/llsdl.cpp index 3f7992a1d7..54ff2975b5 100644 --- a/indra/llwindow/llsdl.cpp +++ b/indra/llwindow/llsdl.cpp @@ -51,7 +51,7 @@ void init_sdl() << int(r_sdl_version.major) << "." << int(r_sdl_version.minor) << "." << int(r_sdl_version.patch) << LL_ENDL; -#ifdef LL_LINUX +#if LL_LINUX || __FreeBSD__ // For linux we SDL_INIT_VIDEO and _AUDIO std::initializer_list<std::tuple< char const*, char const * > > hintList = { diff --git a/indra/llwindow/llwindow.cpp b/indra/llwindow/llwindow.cpp index 066d29c624..9debd2e208 100644 --- a/indra/llwindow/llwindow.cpp +++ b/indra/llwindow/llwindow.cpp @@ -33,7 +33,7 @@ #include "llwindowmacosx.h" #elif LL_MESA_HEADLESS #include "llwindowmesaheadless.h" -#elif LL_LINUX +#elif LL_LINUX || __FreeBSD__ #include "llwindowsdl.h" #endif @@ -79,7 +79,7 @@ S32 OSMessageBox(const std::string& text, const std::string& caption, U32 type) result = OSMessageBoxMacOSX(text, caption, type); #elif LL_MESA_HEADLESS // !!! *FIX: (?) return OSBTN_OK; -#elif LL_LINUX +#elif LL_LINUX || __FreeBSD__ result = OSMessageBoxSDL(text, caption, type); #else #error("OSMessageBox not implemented for this platform!") @@ -264,7 +264,7 @@ std::vector<std::string> LLWindow::getDynamicFallbackFontList() return LLWindowWin32::getDynamicFallbackFontList(); #elif LL_DARWIN return LLWindowMacOSX::getDynamicFallbackFontList(); -#elif LL_LINUX +#elif LL_LINUX || __FreeBSD__ return LLWindowSDL::getDynamicFallbackFontList(); #else return std::vector<std::string>(); @@ -347,7 +347,7 @@ LLSplashScreen *LLSplashScreen::create() return new LLSplashScreenWin32; #elif LL_DARWIN return new LLSplashScreenMacOSX; -#elif LL_MESA_HEADLESS || LL_LINUX // !!! *FIX: (?) +#elif LL_MESA_HEADLESS || LL_LINUX || __FreeBSD__ // !!! *FIX: (?) return 0; #else #error("LLSplashScreen not implemented on this platform!") @@ -433,7 +433,7 @@ LLWindow* LLWindowManager::createWindow( new_window = new LLWindowMesaHeadless(callbacks, title, name, x, y, width, height, flags, fullscreen, clearBg, enable_vsync, use_gl, ignore_pixel_depth); -#elif LL_LINUX +#elif LL_LINUX || __FreeBSD__ new_window = new LLWindowSDL(callbacks, title, name, x, y, width, height, flags, fullscreen, clearBg, enable_vsync, use_gl, ignore_pixel_depth, fsaa_samples); diff --git a/indra/llwindow/llwindowsdl.h b/indra/llwindow/llwindowsdl.h index 13592b991c..14d835cc31 100644 --- a/indra/llwindow/llwindowsdl.h +++ b/indra/llwindow/llwindowsdl.h @@ -28,7 +28,7 @@ // Simple Directmedia Layer (http://libsdl.org/) implementation of LLWindow class -#if LL_LINUX +#if LL_LINUX || __FreeBSD__ #include "llwindow.h" #include "lltimer.h" |