Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
promise
OpenXG-RAN
Commits
2c4bc731
Commit
2c4bc731
authored
Apr 11, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clear newly created pixmap to avoid some flickering when resizing windows
parent
066bac4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
common/utils/T/tracer/gui/x.c
common/utils/T/tracer/gui/x.c
+4
-0
No files found.
common/utils/T/tracer/gui/x.c
View file @
2c4bc731
...
...
@@ -74,6 +74,8 @@ x_window *x_create_window(x_connection *_x, int width, int height,
ret
->
p
=
XCreatePixmap
(
x
->
d
,
ret
->
w
,
width
,
height
,
DefaultDepth
(
x
->
d
,
DefaultScreen
(
x
->
d
)));
XFillRectangle
(
x
->
d
,
ret
->
p
,
x
->
colors
[
BACKGROUND_COLOR
],
0
,
0
,
width
,
height
);
/* enable backing store */
{
...
...
@@ -194,6 +196,8 @@ printf("resize old %d %d new %d %d\n", xw->width, xw->height, xw->new_width, xw-
XFreePixmap
(
x
->
d
,
xw
->
p
);
xw
->
p
=
XCreatePixmap
(
x
->
d
,
xw
->
w
,
xw
->
width
,
xw
->
height
,
DefaultDepth
(
x
->
d
,
DefaultScreen
(
x
->
d
)));
XFillRectangle
(
x
->
d
,
xw
->
p
,
x
->
colors
[
BACKGROUND_COLOR
],
0
,
0
,
xw
->
width
,
xw
->
height
);
//xw->repaint = 1;
}
}
...
...
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