Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
71aa601b
Commit
71aa601b
authored
Dec 21, 2011
by
pixhawk
Browse files
Fixed resize bug in HUD.
parent
880879cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/ui/HUD.cc
View file @
71aa601b
...
...
@@ -153,6 +153,7 @@ HUD::HUD(int width, int height, QWidget* parent)
connect
(
refreshTimer
,
SIGNAL
(
timeout
()),
this
,
SLOT
(
paintHUD
()));
// Resize to correct size and fill with image
resize
(
this
->
width
(),
this
->
height
());
//glDrawPixels(glImage.width(), glImage.height(), GL_RGBA, GL_UNSIGNED_BYTE, glImage.bits());
// Set size once
...
...
src/ui/QGCRGBDView.cc
View file @
71aa601b
...
...
@@ -248,7 +248,7 @@ void QGCRGBDView::updateData(UASInterface *uas)
{
if
(
depth
[
c
]
!=
0
)
{
int
idx
=
fminf
(
depth
[
c
],
10
.0
f
)
/
10
.0
f
*
127.0
f
;
int
idx
=
fminf
(
depth
[
c
],
7
.0
f
)
/
7
.0
f
*
127.0
f
;
idx
=
127
-
idx
;
pixel
[
0
]
=
colormapJet
[
idx
][
2
]
*
255.0
f
;
...
...
src/ui/map3D/Pixhawk3DWidget.cc
View file @
71aa601b
...
...
@@ -1238,7 +1238,7 @@ Pixhawk3DWidget::updateRGBD(double robotX, double robotY, double robotZ)
{
if
(
depth
[
c
]
!=
0
)
{
int
idx
=
fminf
(
depth
[
c
],
10
.0
f
)
/
10
.0
f
*
127.0
f
;
int
idx
=
fminf
(
depth
[
c
],
7
.0
f
)
/
7
.0
f
*
127.0
f
;
idx
=
127
-
idx
;
pixel
[
0
]
=
colormap_jet
[
idx
][
2
]
*
255.0
f
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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