--- a/baseport/syborg/fb/syborg_fb.cpp Thu Oct 15 17:58:46 2009 +0100
+++ b/baseport/syborg/fb/syborg_fb.cpp Wed Oct 21 10:29:21 2009 +0100
@@ -197,9 +197,13 @@
if(aMode != aInfo.iDisplayMode)
{
- aInfo.iOffsetToFirstPixel = KCOnfigOffsetToFirstPixel;
+
+ aInfo.iOffsetToFirstPixel = KConfigOffsetToFirstPixel;
+
aInfo.iIsPalettized = KConfigIsPalettized;
- aInfo.iOffsetBetweenLines = KCOnfigOffsetBetweenLines;
+
+ aInfo.iOffsetBetweenLines = KConfigOffsetBetweenLines;
+
aInfo.iBitsPerPixel = KConfigBitsPerPixel;
}
return KErrNone;
@@ -208,7 +212,10 @@
TInt DLcdPowerHandler::AllocateFrameBuffer()
{
// Allocate physical RAM for video
- TInt vSize = TSyborg::VideoRamSize();
+
+// Added only the comments
+ TInt vSize = TSyborg::VideoRamSize(); // Maximum display now 854 x 854
+
NKern::ThreadEnterCS();
TInt r = Epoc::AllocPhysicalRam(vSize,Syborg::VideoRamPhys);
@@ -251,8 +258,10 @@
iVideoInfo.iSizeInPixels.iWidth = KConfigLcdWidth;
iVideoInfo.iSizeInPixels.iHeight = KConfigLcdHeight;
iVideoInfo.iDisplayMode = KConfigLcdDisplayMode;
- iVideoInfo.iOffsetToFirstPixel = KCOnfigOffsetToFirstPixel;
- iVideoInfo.iOffsetBetweenLines = KCOnfigOffsetBetweenLines;
+
+ iVideoInfo.iOffsetToFirstPixel = KConfigOffsetToFirstPixel;
+ iVideoInfo.iOffsetBetweenLines = KConfigOffsetBetweenLines;
+
iVideoInfo.iIsPalettized = KConfigIsPalettized;
iVideoInfo.iBitsPerPixel = KConfigBitsPerPixel;
iVideoInfo.iSizeInTwips.iWidth = KConfigLcdWidthInTwips;
@@ -446,8 +455,10 @@
iVideoInfo.iSizeInPixels.iWidth = KConfigLcdWidth;
iVideoInfo.iSizeInPixels.iHeight = KConfigLcdHeight;
iVideoInfo.iDisplayMode = KConfigLcdDisplayMode;
- iVideoInfo.iOffsetToFirstPixel = KCOnfigOffsetToFirstPixel;
- iVideoInfo.iOffsetBetweenLines = KCOnfigOffsetBetweenLines;
+
+ iVideoInfo.iOffsetToFirstPixel = KConfigOffsetToFirstPixel;
+ iVideoInfo.iOffsetBetweenLines = KConfigOffsetBetweenLines;
+
iVideoInfo.iIsPalettized = KConfigIsPalettized;
iVideoInfo.iBitsPerPixel = KConfigBitsPerPixel;
iVideoInfo.iSizeInTwips.iWidth = KConfigLcdWidthInTwips;