fix iOS screen rotation with keyboard
This commit is contained in:
@@ -95,7 +95,7 @@ void App::showKeyboard()
|
||||
redraw = true;
|
||||
#ifdef __IOS__
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[ios_view registerForKeyboardNotifications];
|
||||
//[ios_view registerForKeyboardNotifications];
|
||||
[ios_view becomeFirstResponder];
|
||||
});
|
||||
#elif __ANDROID__
|
||||
|
||||
@@ -12,7 +12,7 @@ Sampler FontManager::m_sampler;
|
||||
bool Font::load(const std::string& ttf, int font_size, float font_scale)
|
||||
{
|
||||
Asset file;
|
||||
LOG("Font::load %s", ttf);
|
||||
LOG("Font::load %s", ttf.c_str());
|
||||
if (file.open(ttf.c_str()) && file.read_all())
|
||||
{
|
||||
path = ttf;
|
||||
|
||||
Reference in New Issue
Block a user