aboutsummaryrefslogtreecommitdiff
path: root/libXaw/src/SmeLine.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-06-15 14:04:46 +0200
committermarha <marha@users.sourceforge.net>2012-06-15 14:04:46 +0200
commita33de30073bfa0ee1abba186dba9fa52cf0aa23a (patch)
tree9eae122e901b9a1d1c7cfcfc2385202793a1f92a /libXaw/src/SmeLine.c
parent7a2af605c2c2b0d2e9bbb0b161eba8842acefbcb (diff)
downloadvcxsrv-a33de30073bfa0ee1abba186dba9fa52cf0aa23a.tar.gz
vcxsrv-a33de30073bfa0ee1abba186dba9fa52cf0aa23a.tar.bz2
vcxsrv-a33de30073bfa0ee1abba186dba9fa52cf0aa23a.zip
Updated to following packages:
freetype-2.4.10 libXaw-1.0.11 openssl-1.0.1c
Diffstat (limited to 'libXaw/src/SmeLine.c')
-rw-r--r--libXaw/src/SmeLine.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libXaw/src/SmeLine.c b/libXaw/src/SmeLine.c
index 80de18ed4..801134267 100644
--- a/libXaw/src/SmeLine.c
+++ b/libXaw/src/SmeLine.c
@@ -30,7 +30,7 @@ in this Software without prior written authorization from The Open Group.
* Date: September 26, 1989
*
* By: Chris D. Peterson
- * MIT X Consortium
+ * MIT X Consortium
* kit@expo.lcs.mit.edu
*/
@@ -183,17 +183,17 @@ CreateGC(Widget w)
SmeLineObject entry = (SmeLineObject)w;
XGCValues values;
XtGCMask mask = GCForeground | GCGraphicsExposures | GCLineWidth;
-
+
values.foreground = entry->sme_line.foreground;
values.graphics_exposures = False;
values.line_width = entry->sme_line.line_width;
-
+
if (entry->sme_line.stipple != XtUnspecifiedPixmap) {
values.stipple = entry->sme_line.stipple;
- values.fill_style = FillStippled;
+ values.fill_style = FillStippled;
mask |= GCStipple | GCFillStyle;
-
- entry->sme_line.gc = XCreateGC(XtDisplayOfObject(w),
+
+ entry->sme_line.gc = XCreateGC(XtDisplayOfObject(w),
RootWindowOfScreen(XtScreenOfObject(w)),
mask, &values);
}
@@ -212,7 +212,7 @@ DestroyGC(Widget w)
{
SmeLineObject entry = (SmeLineObject)w;
- if (entry->sme_line.stipple != XtUnspecifiedPixmap)
+ if (entry->sme_line.stipple != XtUnspecifiedPixmap)
XFreeGC(XtDisplayOfObject(w), entry->sme_line.gc);
else
XtReleaseGC(w, entry->sme_line.gc);
@@ -225,7 +225,7 @@ XawSmeLineRedisplay(Widget w, XEvent *event, Region region)
SmeLineObject entry = (SmeLineObject)w;
int y = XtY(w) + (((int)XtHeight(w) - entry->sme_line.line_width) >> 1);
- if (entry->sme_line.stipple != XtUnspecifiedPixmap)
+ if (entry->sme_line.stipple != XtUnspecifiedPixmap)
XSetTSOrigin(XtDisplayOfObject(w), entry->sme_line.gc, 0, y);
XFillRectangle(XtDisplayOfObject(w), XtWindowOfObject(w),
@@ -252,7 +252,7 @@ XawSmeLineSetValues(Widget current, Widget request, Widget cnew,
{
SmeLineObject entry = (SmeLineObject)cnew;
SmeLineObject old_entry = (SmeLineObject)current;
-
+
if (entry->sme_line.line_width != old_entry->sme_line.line_width &&
entry->sme_line.stipple != old_entry->sme_line.stipple) {
DestroyGC(current);