textrendering/textformatting/tbox/FRMSCRND.CPP
changeset 40 91ef7621b7fc
parent 0 1fb32624e06b
child 55 336bee5c2d35
equal deleted inserted replaced
21:f2f7b3284356 40:91ef7621b7fc
    18 
    18 
    19 #include "FRMTVIEW.H"
    19 #include "FRMTVIEW.H"
    20 #include "FRMCONST.H"
    20 #include "FRMCONST.H"
    21 #include "FORMUTIL.H"
    21 #include "FORMUTIL.H"
    22 
    22 
       
    23 #include "OstTraceDefinitions.h"
       
    24 #ifdef OST_TRACE_COMPILER_IN_USE
       
    25 #include "FRMSCRNDTraces.h"
       
    26 #endif
       
    27 
    23 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    28 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    24 #include "FRMCONST_INTERNAL.H"
    29 #include "FRMCONST_INTERNAL.H"
    25 #include "FRMCONST_PARTNER.H"
    30 #include "FRMCONST_PARTNER.H"
    26 #include "TAGMA_INTERNAL.H"
    31 #include "TAGMA_INTERNAL.H"
    27 #endif
    32 #endif
   102 void RScreenDisplay::CreateContextL()
   107 void RScreenDisplay::CreateContextL()
   103 	//
   108 	//
   104 	//Create and activate the main Graphics Context
   109 	//Create and activate the main Graphics Context
   105 	//
   110 	//
   106 	{
   111 	{
       
   112 	if (iGc)
       
   113 	    {
       
   114 	    OstTrace0( TRACE_DUMP, RSCREENDISPLAY_CREATECONTEXTL, "EFGcNotSet" );
       
   115 	    }
   107 	__ASSERT_DEBUG(iGc==NULL,FormPanic(EFGcNotSet));
   116 	__ASSERT_DEBUG(iGc==NULL,FormPanic(EFGcNotSet));
   108 	User::LeaveIfError(iGd->CreateBitmapContext(iGc));
   117 	User::LeaveIfError(iGd->CreateBitmapContext(iGc));
   109 	if (iWin)
   118 	if (iWin)
   110 		iDrawTextLayoutContext->SetWindowGc((CWindowGc *)iGc);
   119 		iDrawTextLayoutContext->SetWindowGc((CWindowGc *)iGc);
   111 	else
   120 	else