equal
deleted
inserted
replaced
526 void CDirectScreenAccess::Restart() |
526 void CDirectScreenAccess::Restart() |
527 { |
527 { |
528 iAbort.Restart(iReason); |
528 iAbort.Restart(iReason); |
529 } |
529 } |
530 |
530 |
531 void CDirectScreenAccess::UpdateSizeAndRotation(CFbsBitGc*/* aGc*/) |
531 void CDirectScreenAccess::UpdateSizeAndRotation(CFbsBitGc* aGc) |
532 { |
532 { |
533 TPixelsAndRotation sizeAndRotation; |
533 TPixelsAndRotation sizeAndRotation; |
534 iWsScreenDevice->GetDefaultScreenSizeAndRotation(sizeAndRotation); |
534 iWsScreenDevice->GetDefaultScreenSizeAndRotation(sizeAndRotation); |
535 iScreenSize = sizeAndRotation.iPixelSize; |
535 iScreenSize = sizeAndRotation.iPixelSize; |
536 __ASSERT_ALWAYS(iScreenDevice,Panic(EW32PanicDirectMisuse)); |
536 __ASSERT_ALWAYS(iScreenDevice,Panic(EW32PanicDirectMisuse)); |
547 //no point to set draw origin if draw region is empty |
547 //no point to set draw origin if draw region is empty |
548 //this also indicates the place to draw might be outside DSA buffer |
548 //this also indicates the place to draw might be outside DSA buffer |
549 iScreenDevice->SetDrawDeviceOffset(appAreaInDsa.iTl); |
549 iScreenDevice->SetDrawDeviceOffset(appAreaInDsa.iTl); |
550 } |
550 } |
551 } |
551 } |
|
552 |
|
553 aGc->Activate(iScreenDevice); |
552 } |
554 } |
553 |
555 |
554 void CDirectScreenAccess::RunL() |
556 void CDirectScreenAccess::RunL() |
555 { |
557 { |
556 iAborting = ETrue; |
558 iAborting = ETrue; |