Slight optimization

meow-7.2.2
Ansariel 2022-09-14 14:20:40 +02:00
parent a5cb6dab38
commit 22b72a328b
2 changed files with 2 additions and 14 deletions

View File

@ -57,12 +57,6 @@
// Imported globals
//
// <FS:Zi> IME - International input compositing, i.e. for Japanese / Chinese text input
#if LL_SDL2
extern LLControlGroup gSavedSettings;
#endif
// </FS:Zi>
//
// Constants
//
@ -2172,7 +2166,7 @@ void LLLineEditor::draw()
ime_pos.mY = (S32) (ime_pos.mY * LLUI::getScaleFactor().mV[VY]);
// <FS:Zi> IME - International input compositing, i.e. for Japanese / Chinese text input
#if LL_SDL2
static LLCachedControl<S32> sdl2_ime_default_vertical_offset(*LLControlGroup::getInstance("Global"), "SDL2IMEDefaultVerticalOffset");
static LLUICachedControl<S32> sdl2_ime_default_vertical_offset("SDL2IMEDefaultVerticalOffset");
ime_pos.mY += sdl2_ime_default_vertical_offset;
#endif
// </FS:Zi>

View File

@ -50,12 +50,6 @@
#include "fsregistrarutils.h"
// <FS:Zi> IME - International input compositing, i.e. for Japanese / Chinese text input
#if LL_SDL2
extern LLControlGroup gSavedSettings;
#endif
// </FS:Zi>
const F32 CURSOR_FLASH_DELAY = 1.0f; // in seconds
const S32 CURSOR_THICKNESS = 2;
const F32 TRIPLE_CLICK_INTERVAL = 0.3f; // delay between double and triple click.
@ -653,7 +647,7 @@ void LLTextBase::drawCursor()
ime_pos.mY = (S32) (ime_pos.mY * LLUI::getScaleFactor().mV[VY]);
// <FS:Zi> IME - International input compositing, i.e. for Japanese / Chinese text input
#if LL_SDL2
static LLCachedControl<S32> sdl2_ime_default_vertical_offset(*LLControlGroup::getInstance("Global"), "SDL2IMEDefaultVerticalOffset");
static LLUICachedControl<S32> sdl2_ime_default_vertical_offset("SDL2IMEDefaultVerticalOffset");
ime_pos.mY += sdl2_ime_default_vertical_offset;
#endif
// </FS:Zi>