Author: greatlrd
Date: Tue Jan 1 22:15:22 2008
New Revision: 31537
URL: http://svn.reactos.org/svn/reactos?rev=31537&view=rev
Log:
adding documentations for DxEngGetDCState
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c Tue Jan 1 22:15:22 2008
@@ -399,14 +399,31 @@
return FALSE;
}
-/************************************************************************/
-/* DxEngGetDCState */
-/************************************************************************/
-/* Note type 0 = N/A */
-/* Note type 1 = Is DC full screen */
-/* Note type 2 = Get Complexity of visiable region. */
-/* Note type 3 = Get Driver hdev, which is pPDev. */
-
+
+
+/*++
+* @name DxEngGetDCState
+* @implemented
+*
+* The function DxEngGetDCState getting sate
+* if it DC full screen / Get Complexity of visiable region or
+* Get Driver hdev, which is pPDev
+*
+* @param HDC hdc
+* The hdc
+*
+* @param DWORD type
+* value 1 = Is DC full screen
+* value 2 = Get Complexity of visiable region.
+* value 3 = Get Driver hdev, which is pPDev.
+*
+* @return
+* return one of the type value
+*
+* @remarks.
+* we do not have type 2 implement yet
+*
+*--*/
DWORD
DxEngGetDCState(HDC hDC,
DWORD type)
@@ -425,12 +442,14 @@
UNIMPLEMENTED;
break;
case 3:
- { // Return HDEV of this DC.
+ {
+ /* Return HDEV of this DC. */
retVal = (DWORD) pDC->pPDev;
break;
}
default:
- UNIMPLEMENTED;
+ /* if it does not found a type it wanted we return 0 as value */
+ DPRINT1("warning did not found type %d\n",type);
break;
}
DC_UnlockDc(pDC);
Author: hpoussin
Date: Tue Jan 1 19:35:21 2008
New Revision: 31534
URL: http://svn.reactos.org/svn/reactos?rev=31534&view=rev
Log:
Bugcheck if no miniport driver is available
See issue #2899 for more details.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dc.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c Tue Jan 1 19:35:21 2008
@@ -16,28 +16,16 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id$
- *
+/*
* DC.C - Device context functions
*
*/
#include <w32k.h>
+#include <bugcodes.h>
#define NDEBUG
#include <debug.h>
-
-/* ROS Internal. Please deprecate */
-NTHALAPI
-BOOLEAN
-NTAPI
-HalQueryDisplayOwnership(
- VOID
-);
-
-#ifndef OBJ_COLORSPACE
-#define OBJ_COLORSPACE (14)
-#endif
static GDIDEVICE PrimarySurface;
static KEVENT VideoDriverNeedsPreparation;
@@ -740,8 +728,15 @@
{
if (! IntPrepareDriverIfNeeded())
{
- DPRINT1("Unable to prepare graphics driver, returning NULL ic\n");
- return NULL;
+ /* Here, we have two possibilities:
+ * a) return NULL, and hope that the caller
+ * won't call us in a loop
+ * b) bugcheck, but caller is unable to
+ * react on the problem
+ */
+ /*DPRINT1("Unable to prepare graphics driver, returning NULL ic\n");
+ return NULL;*/
+ KeBugCheck(VIDEO_DRIVER_INIT_FAILURE);
}
}
else
@@ -2846,7 +2841,11 @@
return FALSE;
}
- IntPrepareDriverIfNeeded();
+ if (!IntPrepareDriverIfNeeded())
+ {
+ DPRINT1("IntPrepareDriverIfNeeded failed\n");
+ return FALSE;
+ }
/*
* DriverFileNames may be a list of drivers in REG_SZ_MULTI format,
Author: dreimer
Date: Tue Jan 1 15:29:19 2008
New Revision: 31533
URL: http://svn.reactos.org/svn/reactos?rev=31533&view=rev
Log:
Fix typos in cmd. thx to amine for spotting.
Modified:
trunk/reactos/base/shell/cmd/lang/en-US.rc
trunk/reactos/base/shell/cmd/lang/hu-HU.rc
Modified: trunk/reactos/base/shell/cmd/lang/en-US.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/lang/en-US.…
==============================================================================
--- trunk/reactos/base/shell/cmd/lang/en-US.rc (original)
+++ trunk/reactos/base/shell/cmd/lang/en-US.rc Tue Jan 1 15:29:19 2008
@@ -596,7 +596,7 @@
STRING_HELP2, "START Starts a separate window to run a specified program or command.\n\
Executes command.\n\
TIME Displays or sets the system time.\n\
-TIMER Allow the use of ten stopwaches.\n\
+TIMER Allow the use of ten stopwatches.\n\
TITLE Sets the window title for a CMD.EXE session.\n\
TYPE Displays the contents of a text file.\n\
VER Displays the ReactOS version.\n\
Modified: trunk/reactos/base/shell/cmd/lang/hu-HU.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/lang/hu-HU.…
==============================================================================
--- trunk/reactos/base/shell/cmd/lang/hu-HU.rc (original)
+++ trunk/reactos/base/shell/cmd/lang/hu-HU.rc Tue Jan 1 15:29:19 2008
@@ -408,21 +408,21 @@
STRING_TIMER_HELP2, "Eltelt: %02d%c%02d%c%02d%c%02d\n"
-STRING_TIMER_HELP3, "allow the use of ten stopwaches.\n\n\
+STRING_TIMER_HELP3, "allow the use of ten stopwatches.\n\n\
TIMER [ON|OFF] [/S] [/n] [/Fn]\n\n\
ON Stopper bekapcsolása\n\
OFF Stopper kikapcsolása\n\
/S Split time. Return stopwatch split\n\
time without changing its value\n\
/n Stopper azonosító megadása.\n\
- Stopwaches avaliable are 0 to 9\n\
+ Stopwatches avaliable are 0 to 9\n\
If it is not specified default is 1\n\
/Fn Format for output\n\
n can be:\n\
0 milliseconds\n\
1 hh%cmm%css%cdd\n\n\
if none of ON, OFF or /S is specified the command\n\
-will toggle stopwach state\n\n"
+will toggle stopwatch state\n\n"
STRING_TYPE_HELP1, "Megjeleníti az állományok tartalmát.\n\n\
TYPE [meghajtó:][elérési_út]állománynév \n\