Author: greatlrd
Date: Sun Feb 11 18:19:22 2007
New Revision: 25786
URL: http://svn.reactos.org/svn/reactos?rev=25786&view=rev
Log:
adding some comment after review how it works in windows. I doing my own syscall in windows 2000 to see how it act and base my knowledges of that to correct some part of win32k dx handling.
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c Sun Feb 11 18:19:22 2007
@@ -52,6 +52,19 @@
return TRUE;
}
+
+/* Documations how it works in windows and what we should do
+*
+ * HANDLE NtGdiDdCreateDirectDrawObject(HDC hdc)
+ *
+ * Use CreateDCW(LDisplay,NULL,NULL,NULL); or some thing else to create a DC.
+.*
+ * A NULL DC are not accpect it return 0 as error
+ *
+ * How the interal works see msdn and ddk that is egunt inforamtions to figour or see reactos
+ * source code. ReactOS interal working diffent here what windows does.
+ */
+
HANDLE STDCALL
NtGdiDdCreateDirectDrawObject(HDC hdc)
{
@@ -80,7 +93,6 @@
if (hdc == NULL)
{
- DPRINT1("FIXME hdc is NULL \n");
return NULL;
}
}
@@ -183,6 +195,8 @@
DPRINT1("DirectDraw return handler 0x%x\n",hDirectDraw);
return hDirectDraw;
}
+
+
BOOL STDCALL
NtGdiDdDeleteDirectDrawObject( HANDLE hDirectDrawLocal)
Author: fireball
Date: Sun Feb 11 16:37:39 2007
New Revision: 25783
URL: http://svn.reactos.org/svn/reactos?rev=25783&view=rev
Log:
Right now, it's not enough to just set the bios video mode to 0x12, other stuff like choosing correct font is needed.
Fixes "no text output in 1st stage setup" bug (and it still sets the videomode to 0x12, so it's not a hack).
Modified:
trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c Sun Feb 11 16:37:39 2007
@@ -1108,7 +1108,7 @@
VOID
PcVideoPrepareForReactOS(VOID)
{
- PcVideoSetBiosMode(0x12);
+ PcVideoSetMode80x50_80x43();
PcVideoHideShowTextCursor(FALSE);
}