baseport/syborg/pointer/syborg_pointer.cpp
branchgraphics-phase-3
changeset 125 916c862ecaf1
parent 96 c7e943dbf70f
equal deleted inserted replaced
117:b7d35cad610d 125:916c862ecaf1
   106   if(r != KErrNone)
   106   if(r != KErrNone)
   107 	__KTRACE_OPT(KPANIC, Kern::Printf("TPointerRv::Init3(): Kern::HalFunction(EDisplayHalCurrentModeInfo)=%d", r));
   107 	__KTRACE_OPT(KPANIC, Kern::Printf("TPointerRv::Init3(): Kern::HalFunction(EDisplayHalCurrentModeInfo)=%d", r));
   108 
   108 
   109   iScreenWidth  = videoInfo.iSizeInPixels.iWidth;
   109   iScreenWidth  = videoInfo.iSizeInPixels.iWidth;
   110   iScreenHeight = videoInfo.iSizeInPixels.iHeight;
   110   iScreenHeight = videoInfo.iSizeInPixels.iHeight;
   111   Kern::Printf("TPointerRv::Init3(): width: %d height: %d", iScreenWidth, iScreenHeight);
   111   __DEBUG_PRINT("TPointerRv::Init3(): width: %d height: %d", iScreenWidth, iScreenHeight);
   112 
   112 
   113   iDisplayMode  = videoInfo.iDisplayMode;
   113   iDisplayMode  = videoInfo.iDisplayMode;
   114 
   114 
   115 
   115 
   116   iVideoMem = videoInfo.iVideoAddress + videoInfo.iOffsetToFirstPixel;
   116   iVideoMem = videoInfo.iVideoAddress + videoInfo.iOffsetToFirstPixel;
   117   iOffSetBetweenEachLine = iScreenWidth;
   117   iOffSetBetweenEachLine = iScreenWidth;
   118   Kern::Printf("TPointerRv::Init3(): iOffsetToFirstPixel: %d", iVideoMem);
   118   __DEBUG_PRINT("TPointerRv::Init3(): iOffsetToFirstPixel: %d", iVideoMem);
   119 
   119 
   120   ix = iy = 0;
   120   ix = iy = 0;
   121 
   121 
   122   iXFactor = Fixed(iScreenWidth) / Fixed(0x6000);
   122   iXFactor = Fixed(iScreenWidth) / Fixed(0x6000);
   123   iYFactor = Fixed(iScreenHeight) / Fixed(0x8000);
   123   iYFactor = Fixed(iScreenHeight) / Fixed(0x8000);
   201 
   201 
   202 TUint32 *pMem =0;
   202 TUint32 *pMem =0;
   203 TInt k=0;
   203 TInt k=0;
   204 
   204 
   205 	TLinAddr activeFrameLin = ReadReg( KHwBaseClcd, 14 /*FB_VBASE*/ ); 
   205 	TLinAddr activeFrameLin = ReadReg( KHwBaseClcd, 14 /*FB_VBASE*/ ); 
   206 	Kern::Printf("activeFrameLin: 0x%08x", activeFrameLin);
   206 	__DEBUG_PRINT("activeFrameLin: 0x%08x", activeFrameLin);
   207 	if( activeFrameLin == 0 )
   207 	if( activeFrameLin == 0 )
   208 		{
   208 		{
   209 		return;
   209 		return;
   210 		}
   210 		}
   211 
   211