Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nvidia-settings
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Debian NVIDIA Maintainers
nvidia-settings
Commits
554b4714
Commit
554b4714
authored
Oct 11, 2017
by
Andy Ritger
Committed by
Aaron Plattner
Jan 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nvctrl samples: Add "--blend-after-warp" option to nv-control-warpblend
parent
9a680076
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
nv-control-warpblend.c
samples/nv-control-warpblend.c
+8
-3
No files found.
samples/nv-control-warpblend.c
View file @
554b4714
...
...
@@ -70,6 +70,7 @@ int main(int ac, char **av)
Pixmap
blendPixmap
;
vertexDataRec
warpData
[
6
];
int
nvDpyId
;
Bool
blendAfterWarp
=
False
;
if
(
!
xDpy
)
{
fprintf
(
stderr
,
"Could not open X Display %s!
\n
"
,
XDisplayName
(
NULL
));
...
...
@@ -78,12 +79,16 @@ int main(int ac, char **av)
screenId
=
XDefaultScreen
(
xDpy
);
if
(
ac
!=
2
)
{
fprintf
(
stderr
,
"Usage: ./nv-control-warpblend nvDpyId
\n
"
);
if
(
(
ac
!=
2
)
&&
(
ac
!=
3
)
)
{
fprintf
(
stderr
,
"Usage: ./nv-control-warpblend nvDpyId
[--blend-after-warp]
\n
"
);
fprintf
(
stderr
,
"See 'nvidia-settings -q CurrentMetaMode' for currently connected DPYs.
\n
"
);
return
1
;
}
if
(
ac
==
3
)
{
blendAfterWarp
=
(
strcmp
(
"--blend-after-warp"
,
av
[
2
])
==
0
);
}
nvDpyId
=
atoi
(
av
[
1
]);
// Start with two screen-aligned triangles, and warp them using the sample
...
...
@@ -166,7 +171,7 @@ int main(int ac, char **av)
screenId
,
nvDpyId
,
blendPixmap
,
False
);
blendAfterWarp
);
return
0
;
}
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