[NTVDM]: For now, use the shared Text/GraphicsFramebuffer variables for console+video...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 8 Nov 2015 02:27:41 +0000 (02:27 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 8 Nov 2015 02:27:41 +0000 (02:27 +0000)
svn path=/trunk/; revision=69844

reactos/subsystems/mvdm/ntvdm/console/video.c
reactos/subsystems/mvdm/ntvdm/console/video.h
reactos/subsystems/mvdm/ntvdm/hardware/video/svga.c

index 18e7960..be21647 100644 (file)
@@ -631,7 +631,7 @@ VgaConsoleUpdateTextCursor(BOOL CursorVisible,
 }
 
 BOOL
-VgaConsoleCreateGraphicsScreen(OUT PBYTE* GraphicsFramebuffer,
+VgaConsoleCreateGraphicsScreen(// OUT PBYTE* GraphicsFramebuffer,
                                IN PCOORD Resolution,
                                IN HANDLE PaletteHandle)
 {
@@ -677,11 +677,13 @@ VgaConsoleCreateGraphicsScreen(OUT PBYTE* GraphicsFramebuffer,
     if (GraphicsConsoleBuffer == INVALID_HANDLE_VALUE) return FALSE;
 
     /* Save the framebuffer address and mutex */
-    *GraphicsFramebuffer = GraphicsBufferInfo.lpBitMap;
+    // *GraphicsFramebuffer = GraphicsBufferInfo.lpBitMap;
+    GraphicsFramebuffer = GraphicsBufferInfo.lpBitMap;
     ConsoleMutex = GraphicsBufferInfo.hMutex;
 
     /* Clear the framebuffer */
-    RtlZeroMemory(*GraphicsFramebuffer, BitmapInfo->bmiHeader.biSizeImage);
+    // RtlZeroMemory(*GraphicsFramebuffer, BitmapInfo->bmiHeader.biSizeImage);
+    RtlZeroMemory(GraphicsFramebuffer, BitmapInfo->bmiHeader.biSizeImage);
 
     /* Set the graphics mode palette */
     SetConsolePalette(GraphicsConsoleBuffer,
@@ -717,7 +719,7 @@ VOID VgaConsoleDestroyGraphicsScreen(VOID)
 }
 
 BOOL
-VgaConsoleCreateTextScreen(OUT PCHAR_CELL* TextFramebuffer,
+VgaConsoleCreateTextScreen(// OUT PCHAR_CELL* TextFramebuffer,
                            IN PCOORD Resolution,
                            IN HANDLE PaletteHandle)
 {
index ceee02b..c2fdcc8 100644 (file)
@@ -16,14 +16,14 @@ VgaConsoleUpdateTextCursor(BOOL CursorVisible,
                            WORD Location);
 
 BOOL
-VgaConsoleCreateGraphicsScreen(OUT PBYTE* GraphicsFramebuffer,
+VgaConsoleCreateGraphicsScreen(// OUT PBYTE* GraphicsFramebuffer,
                                IN PCOORD Resolution,
                                IN HANDLE PaletteHandle);
 
 VOID VgaConsoleDestroyGraphicsScreen(VOID);
 
 BOOL
-VgaConsoleCreateTextScreen(OUT PCHAR_CELL* TextFramebuffer,
+VgaConsoleCreateTextScreen(// OUT PCHAR_CELL* TextFramebuffer,
                            IN PCOORD Resolution,
                            IN HANDLE PaletteHandle);
 
index 78176aa..2cc5572 100644 (file)
@@ -619,7 +619,7 @@ static BOOL VgaEnterNewMode(SCREEN_MODE NewScreenMode, PCOORD Resolution)
     {
         /* Enter new text mode */
 
-        if (!VgaConsoleCreateTextScreen(&TextFramebuffer,
+        if (!VgaConsoleCreateTextScreen(// &TextFramebuffer,
                                         Resolution,
                                         TextPaletteHandle))
         {
@@ -640,7 +640,7 @@ static BOOL VgaEnterNewMode(SCREEN_MODE NewScreenMode, PCOORD Resolution)
     {
         /* Enter graphics mode */
 
-        if (!VgaConsoleCreateGraphicsScreen(&GraphicsFramebuffer,
+        if (!VgaConsoleCreateGraphicsScreen(// &GraphicsFramebuffer,
                                             Resolution,
                                             PaletteHandle))
         {