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

List:       wine-devel
Subject:    Re: Pen fixes
From:       Francois Gouget <fgouget () free ! fr>
Date:       2000-10-30 3:00:25
[Download RAW message or body]

Hi,


On Sun, 22 Oct 2000, Francois Gouget wrote:

>    Still in the same series. The center lines drawn by the endjoin
> example of the 95 Petzold were too thick. The problem appears to be that
> the thickness of BLACK_PEN was 1 instead of 0 so that its thickness was
> being scaled. I believe the thickness of stock pens should be 0 so that
> they are not scaled. It certainly fixed the problem in endjoin.
> 
> Changelog:
> 
>  * objects/gdiobj.c
>    Set the thickness of stock pens to 0 so that they are not scaled


   I noticed that this patch I sent last week was not applied. Is
something wrong with it?


--
Francois Gouget         fgouget@free.fr        http://fgouget.free.fr/
 The greatest programming project of all took six days; on the seventh day the
  programmer rested. We've been trying to debug the *&^%$#@ thing ever since.
                      Resume: design before you implement.

["diff20001022-pen.txt" (TEXT/plain)]

Index: objects/gdiobj.c
===================================================================
RCS file: /home/wine/wine/objects/gdiobj.c,v
retrieving revision 1.37
diff -u -r1.37 gdiobj.c
--- objects/gdiobj.c	2000/09/16 20:53:52	1.37
+++ objects/gdiobj.c	2000/10/22 06:39:58
@@ -82,19 +82,19 @@
 static PENOBJ WhitePen =
 {
     { 0, PEN_MAGIC, 1 },                     /* header */
-    { PS_SOLID, { 1, 0 }, RGB(255,255,255) } /* logpen */
+    { PS_SOLID, { 0, 0 }, RGB(255,255,255) } /* logpen */
 };
 
 static PENOBJ BlackPen =
 {
     { 0, PEN_MAGIC, 1 },               /* header */
-    { PS_SOLID, { 1, 0 }, RGB(0,0,0) } /* logpen */
+    { PS_SOLID, { 0, 0 }, RGB(0,0,0) } /* logpen */
 };
 
 static PENOBJ NullPen =
 {
     { 0, PEN_MAGIC, 1 },      /* header */
-    { PS_NULL, { 1, 0 }, 0 }  /* logpen */
+    { PS_NULL, { 0, 0 }, 0 }  /* logpen */
 };
 
 static FONTOBJ OEMFixedFont =


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

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