Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
85e53327
Commit
85e53327
authored
May 24, 1995
by
Karl Heuer
Browse files
(create_frame_gcs, setup_frame_gcs): Reformat long statements.
parent
34d5ae1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
22 deletions
+23
-22
src/widget.c
src/widget.c
+23
-22
No files found.
src/widget.c
View file @
85e53327
...
...
@@ -527,15 +527,15 @@ create_frame_gcs (ew)
{
struct
frame
*
s
=
ew
->
emacs_frame
.
frame
;
s
->
display
.
x
->
normal_gc
=
XCreateGC
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
(
unsigned
long
)
0
,
(
XGCValues
*
)
0
);
s
->
display
.
x
->
reverse_gc
=
XCreateGC
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
(
unsigned
long
)
0
,
(
XGCValues
*
)
0
);
s
->
display
.
x
->
cursor_gc
=
XCreateGC
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
(
unsigned
long
)
0
,
(
XGCValues
*
)
0
);
s
->
display
.
x
->
normal_gc
=
XCreateGC
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
(
unsigned
long
)
0
,
(
XGCValues
*
)
0
);
s
->
display
.
x
->
reverse_gc
=
XCreateGC
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
(
unsigned
long
)
0
,
(
XGCValues
*
)
0
);
s
->
display
.
x
->
cursor_gc
=
XCreateGC
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
(
unsigned
long
)
0
,
(
XGCValues
*
)
0
);
}
static
char
setup_frame_cursor_bits
[]
=
...
...
@@ -563,19 +563,20 @@ setup_frame_gcs (ew)
effectively cache all of the GC settings we need to use.
*/
blank_stipple
=
XCreateBitmapFromData
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
setup_frame_cursor_bits
,
2
,
2
);
blank_stipple
=
XCreateBitmapFromData
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
setup_frame_cursor_bits
,
2
,
2
);
/* use fg = 0, bg = 1 below, but it's irrelevant since this pixmap should
never actually get used as a background tile!
*/
blank_tile
=
XCreatePixmapFromBitmapData
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
setup_frame_cursor_bits
,
2
,
2
,
(
unsigned
long
)
0
,
(
unsigned
long
)
1
,
ew
->
core
.
depth
);
blank_tile
=
XCreatePixmapFromBitmapData
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
setup_frame_cursor_bits
,
2
,
2
,
(
unsigned
long
)
0
,
(
unsigned
long
)
1
,
ew
->
core
.
depth
);
/* Normal video */
gc_values
.
font
=
ew
->
emacs_frame
.
font
->
fid
;
...
...
@@ -607,10 +608,10 @@ setup_frame_gcs (ew)
gc_values
.
background
=
ew
->
emacs_frame
.
cursor_color
;
gc_values
.
graphics_exposures
=
False
;
gc_values
.
tile
=
blank_tile
;
gc_values
.
stipple
=
XCreateBitmapFromData
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
setup_frame_cursor_bits
,
16
,
16
);
gc_values
.
stipple
=
XCreateBitmapFromData
(
XtDisplay
(
ew
),
RootWindowOfScreen
(
XtScreen
(
ew
)),
setup_frame_cursor_bits
,
16
,
16
);
XChangeGC
(
XtDisplay
(
ew
),
s
->
display
.
x
->
cursor_gc
,
(
GCFont
|
GCForeground
|
GCBackground
|
GCGraphicsExposures
|
GCStipple
|
GCTile
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment