<html>
<head>
<style>
<!--
body { background-color:#ffffff }
.file { border:1px solid #eeeeee; margin-top:1em; margin-bottom:1em }
.pathname { font-family:monospace; float:right }
.fileheader { margin-bottom:.5em }
.diff { margin:0 }
.tasklist { padding:4px; border:1px dashed #000000; margin-top:1em }
.tasklist ul { margin-top:0; margin-bottom:0 }
tr.alt { background-color:#eeeeee }
#added { background-color:#ddffdd }
#addedchars { background-color:#99ff99; font-weight:bolder }
tr.alt #added { background-color:#ccf7cc }
#removed { background-color:#ffdddd }
#removedchars { background-color:#ff9999; font-weight:bolder }
tr.alt #removed { background-color:#f7cccc }
#info { color:#888888 }
#context { background-color:#eeeeee }
td {padding-left:.3em; padding-right:.3em }
tr.head { border-bottom-width:1px; border-bottom-style:solid }
tr.head td { padding:0; padding-top:.2em }
.task { background-color:#ffff00 }
.comment { padding:4px; border:1px dashed #000000; background-color:#ffffdd }
.error { color:red }
hr { border-width:0px; height:2px; background:black }
-->
</style>
</head>
<body>
<pre class="comment">partially implemented fullscreen in changedisplay setting
I can play winquake in fullscreen now :)</pre><pre class="diff" id="context">Modified: trunk/reactos/subsys/win32k/objects/dc.c
</pre><hr /><div class="file">
<div class="fileheader"><big><b>Modified: trunk/reactos/subsys/win32k/objects/dc.c</b></big></div>
<pre class="diff"><small id="info">--- trunk/reactos/subsys/win32k/objects/dc.c        2005-05-26 21:55:34 UTC (rev 15537)
+++ trunk/reactos/subsys/win32k/objects/dc.c        2005-05-26 22:41:31 UTC (rev 15538)
@@ -2507,6 +2507,7 @@
</small></pre><pre class="diff" id="context"> &nbsp; BOOLEAN Reset = FALSE;
 &nbsp; BOOLEAN SetPrimary = FALSE;
 &nbsp; LONG Ret;
</pre><pre class="diff" id="added">+ &nbsp;NTSTATUS Status;
</pre><pre class="diff" id="context"> 
 &nbsp; DPRINT1(&quot;display flag : %x\n&quot;,dwflags);
 
@@ -2545,10 +2546,29 @@
</pre><pre class="diff" id="context"> &nbsp; 
 &nbsp; if ((dwflags &amp; CDS_FULLSCREEN) == CDS_FULLSCREEN)
 &nbsp; {
</pre><pre class="diff" id="added">+ &nbsp; DEVMODE lpDevMode;
</pre><pre class="diff" id="context"> &nbsp; &nbsp;/* Full Screen */
 &nbsp; &nbsp;dwflags &amp;= ~CDS_FULLSCREEN;
</pre><pre class="diff" id="removed">- &nbsp; DPRINT1(&quot;flag CDS_FULLSCREEN <span id="removedchars">UNIMPLEMENT</span>&quot;);
</pre><pre class="diff" id="added">+ &nbsp; DPRINT1(&quot;flag CDS_FULLSCREEN <span id="addedchars">partially implemented</span>&quot;);
</pre><pre class="diff" id="context"> &nbsp; &nbsp;Ret = DISP_CHANGE_FAILED;
</pre><pre class="diff" id="added">+
+ &nbsp; lpDevMode.dmBitsPerPel =0;
+ &nbsp; lpDevMode.dmPelsWidth &nbsp;=0;
+ &nbsp; lpDevMode.dmPelsHeight =0;
+ &nbsp; lpDevMode.dmDriverExtra =0;
+
+ &nbsp; lpDevMode.dmSize = sizeof(DEVMODE);
+ &nbsp; Status = IntEnumDisplaySettings(pDeviceName, &nbsp;ENUM_CURRENT_SETTINGS, &amp;lpDevMode, 0);
+ &nbsp; if (!NT_SUCCESS(Status)) return DISP_CHANGE_FAILED;
+
+ &nbsp; DPRINT1(&quot;Req Mode &nbsp; &nbsp; : %d x %d x %d\n&quot;, DevMode-&gt;dmPelsWidth,DevMode-&gt;dmPelsHeight,DevMode-&gt;dmBitsPerPel);
+ &nbsp; DPRINT1(&quot;Current Mode : %d x %d x %d\n&quot;, lpDevMode.dmPelsWidth,lpDevMode.dmPelsHeight, lpDevMode.dmBitsPerPel);
+
+
+ &nbsp; if ((lpDevMode.dmBitsPerPel == DevMode-&gt;dmBitsPerPel) &amp;&amp;
+ &nbsp; &nbsp; &nbsp; (lpDevMode.dmPelsWidth &nbsp;== DevMode-&gt;dmPelsWidth) &amp;&amp;
+ &nbsp; &nbsp; &nbsp; (lpDevMode.dmPelsHeight == DevMode-&gt;dmPelsHeight))
+         &nbsp; Ret = DISP_CHANGE_SUCCESSFUL; 
</pre><pre class="diff" id="context"> &nbsp; }
 
 &nbsp; if ((dwflags &amp; CDS_VIDEOPARAMETERS) == CDS_VIDEOPARAMETERS)
@@ -2571,8 +2591,7 @@
</pre><pre class="diff" id="context">          &nbsp;        WCHAR KernelModeNameBuffer[256];
                 UNICODE_STRING RegistryKey;
                 WCHAR RegistryKeyBuffer[512];
</pre><pre class="diff" id="removed">-                PDEVICE_OBJECT DeviceObject;
-                <span id="removedchars">NTSTATUS Status;</span>
</pre><pre class="diff" id="added">+                <span id="addedchars">PDEVICE_OBJECT DeviceObject;                </span>
</pre><pre class="diff" id="context">                 ULONG LastSlash;
                 OBJECT_ATTRIBUTES ObjectAttributes;
                 HANDLE DevInstRegKey;
</pre>
</div>

</body>
</html>