void CSdlAppUi::HandleResourceChangeL(TInt aType) { //User::InfoPrint(_L("rect.Height()")); if (aType == KEikDynamicLayoutVariantSwitch) { // Create SDL resize event TRect rect; AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EApplicationWindow, rect); SDL_Event event; event.type = SDL_VIDEORESIZE; event.resize.w = rect.Width(); event.resize.h = rect.Height(); //if ( (SDL_EventOK == NULL) || (*SDL_EventOK)(&event) ) { SDL_PushEvent(&event); iSDLWin->SetRect(rect); /* iSdl->SetContainerWindowL( iSDLWin->GetWindow(), iEikonEnv->WsSession(), *iEikonEnv->ScreenDevice()); */ } CAknAppUi::HandleResourceChangeL(aType); }
void CSdlAppUi::HandleResourceChangeL(TInt aType) { CAknAppUi::HandleResourceChangeL(aType); if(aType == KEikDynamicLayoutVariantSwitch) { iSDLWin->SetRect(ApplicationRect()); if (iSdl) { iSdl->SetContainerWindowL( iSDLWin->GetWindow(), iEikonEnv->WsSession(), *iEikonEnv->ScreenDevice()); } } }