[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ros-diffs
Subject:    [ros-diffs] [CVS reactos] implemented InvertRgn()
From:       weiden () osexperts ! com
Date:       2004-04-23 13:34:04
Message-ID: 20040423133404.5935843AA () mok ! osexperts ! com
[Download RAW message or body]

<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>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>reactos</tt></b><span id="info"> on \
MAIN</span></td></tr> <tr><td><tt>lib/gdi32/misc/<a \
href="#file1">stubs.c</a></tt></td><td align="right" id="added">+1</td><td \
align="right" id="removed">-15</td><td nowrap="nowrap" align="center"><a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/misc/stubs.c?rev=1.52&amp;content-type=text/x-cvsweb-markup">1.52</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/misc/stubs.c.diff?r1=text&amp;tr1=1.52&amp;r2=text&amp;tr2=1.53&amp;f=h">-&gt;</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/misc/stubs.c?rev=1.53&amp;content-type=text/x-cvsweb-markup">1.53</a></td></tr>
 <tr class="alt"><td><tt>lib/gdi32/objects/<a href="#file2">region.c</a></tt></td><td \
align="right" id="added">+13</td><td></td><td nowrap="nowrap" align="center"><a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/objects/region.c?rev=1.11&amp;content-type=text/x-cvsweb-markup">1.11</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/objects/region.c.diff?r1=text&amp;tr1=1.11&amp;r2=text&amp;tr2=1.12&amp;f=h">-&gt;</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/objects/region.c?rev=1.12&amp;content-type=text/x-cvsweb-markup">1.12</a></td></tr>
 <tr><td><tt>subsys/win32k/objects/<a href="#file3">region.c</a></tt></td><td \
align="right" id="added">+25</td><td align="right" id="removed">-2</td><td \
nowrap="nowrap" align="center"><a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/subsys/win32k/objects/region.c?rev=1.48&amp;content-type=text/x-cvsweb-markup">1.48</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/subsys/win32k/objects/region.c.diff?r1=text&amp;tr1=1.48&amp;r2=text&amp;tr2=1.49&amp;f=h">-&gt;</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/subsys/win32k/objects/region.c?rev=1.49&amp;content-type=text/x-cvsweb-markup">1.49</a></td></tr>
 <tr><td></td><td align="right" id="added">+39</td><td align="right" \
id="removed">-17</td><td></td></tr> </table>
<small id="info">3 modified files</small><br />
<pre class="comment">
implemented InvertRgn()
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos">reactos</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib">lib</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32">gdi32</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/misc">misc</a><br \
/></span> <div class="fileheader"><big><b>stubs.c</b></big> <small id="info"><a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/misc/stubs.c?rev=1.52&amp;content-type=text/x-cvsweb-markup">1.52</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/misc/stubs.c.diff?r1=text&amp;tr1=1.52&amp;r2=text&amp;tr2=1.53&amp;f=h">-&gt;</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/misc/stubs.c?rev=1.53&amp;content-type=text/x-cvsweb-markup">1.53</a></small></div>
 <pre class="diff"><small id="info">diff -u -r1.52 -r1.53
--- stubs.c	9 Apr 2004 20:03:12 -0000	1.52
+++ stubs.c	23 Apr 2004 13:34:04 -0000	1.53
@@ -1,4 +1,4 @@
</small></pre><pre class="diff" id="removed">-/* $Id: stubs.c,v 1.52 2004/04/09 \
20:03:12 navaraf Exp $ </pre><pre class="diff" id="added">+/* $Id: stubs.c,v 1.53 \
2004/04/23 13:34:04 weiden Exp $ </pre><pre class="diff" id="context">  *
  * reactos/lib/gdi32/misc/stubs.c
  *
</pre><pre class="diff"><small id="info">@@ -413,20 +413,6 @@
</small></pre><pre class="diff" id="context">  */
 BOOL
 STDCALL
</pre><pre class="diff" id="removed">-InvertRgn(
-	HDC	hDc,
-	HRGN	hRgn
-	)
-{
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return FALSE;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
</pre><pre class="diff" id="context"> PlayMetaFile(
 	HDC		a0,
 	HMETAFILE	a1
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname"><a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos">reactos</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib">lib</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32">gdi32</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/objects">objects</a><br \
/></span> <div class="fileheader"><big><b>region.c</b></big> <small id="info"><a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/objects/region.c?rev=1.11&amp;content-type=text/x-cvsweb-markup">1.11</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/objects/region.c.diff?r1=text&amp;tr1=1.11&amp;r2=text&amp;tr2=1.12&amp;f=h">-&gt;</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/lib/gdi32/objects/region.c?rev=1.12&amp;content-type=text/x-cvsweb-markup">1.12</a></small></div>
 <pre class="diff"><small id="info">diff -u -r1.11 -r1.12
--- region.c	8 Nov 2003 22:54:26 -0000	1.11
+++ region.c	23 Apr 2004 13:34:04 -0000	1.12
@@ -296,3 +296,16 @@
</small></pre><pre class="diff" id="context"> {
 	return NtGdiRectInRegion(a0,(CONST PRECT)a1);
 }
</pre><pre class="diff" id="added">+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+InvertRgn(
+	HDC	hDc,
+	HRGN	hRgn
+	)
+{
+	return NtGdiInvertRgn(hDc, hRgn);
+}
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname"><a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos">reactos</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/subsys">subsys</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/subsys/win32k">win32k</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/subsys/win32k/objects">objects</a><br \
/></span> <div class="fileheader"><big><b>region.c</b></big> <small id="info"><a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/subsys/win32k/objects/region.c?rev=1.48&amp;content-type=text/x-cvsweb-markup">1.48</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/subsys/win32k/objects/region.c.diff?r1=text&amp;tr1=1.48&amp;r2=text&amp;tr2=1.49&amp;f=h">-&gt;</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/subsys/win32k/objects/region.c?rev=1.49&amp;content-type=text/x-cvsweb-markup">1.49</a></small></div>
 <pre class="diff"><small id="info">diff -u -r1.48 -r1.49
--- region.c	9 Apr 2004 20:03:20 -0000	1.48
+++ region.c	23 Apr 2004 13:34:04 -0000	1.49
@@ -16,7 +16,7 @@
</small></pre><pre class="diff" id="context">  *  along with this program; if not, \
                write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
</pre><pre class="diff" id="removed">-/* $Id: region.c,v 1.48 2004/04/09 20:03:20 \
navaraf Exp $ */ </pre><pre class="diff" id="added">+/* $Id: region.c,v 1.49 \
2004/04/23 13:34:04 weiden Exp $ */ </pre><pre class="diff" id="context"> #undef \
WIN32_LEAN_AND_MEAN  #include &lt;windows.h&gt;
 #include &lt;ddk/ntddk.h&gt;
</pre><pre class="diff"><small id="info">@@ -1952,7 +1952,30 @@
</small></pre><pre class="diff" id="context"> NtGdiInvertRgn(HDC  hDC,
                     HRGN  hRgn)
 {
</pre><pre class="diff" id="removed">-  UNIMPLEMENTED;
</pre><pre class="diff" id="added">+  PROSRGNDATA RgnData;
+  ULONG i;
+  PRECT rc;
+  
+  if(!(RgnData = RGNDATA_LockRgn(hRgn)))
+  {
+    SetLastWin32Error(ERROR_INVALID_HANDLE);
+    return FALSE;
+  }
+  
+  rc = (PRECT)RgnData-&gt;Buffer;
+  for(i = 0; i &lt; RgnData-&gt;rdh.nCount; i++)
+  {
+    
+    if(!NtGdiPatBlt(hDC, rc-&gt;left, rc-&gt;top, rc-&gt;right - rc-&gt;left, \
rc-&gt;bottom - rc-&gt;top, DSTINVERT)) +    {
+      RGNDATA_UnlockRgn(hRgn);
+      return FALSE;
+    }
+    rc++;
+  }
+  
+  RGNDATA_UnlockRgn(hRgn);
+  return TRUE;
</pre><pre class="diff" id="context"> }
 
 INT
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" \
title="commit -&gt; email">CVSspam</a> 0.2.8</small></center> </body></html>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic