diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-21 02:22:03 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-21 02:22:03 +0200 |
commit | bf9d97d17b6e9ecc70d8d48f52aca3ade60fc7e4 (patch) | |
tree | 35a276e931820437bbf245587cea6a961ca55de8 | |
parent | c5b69772be6c56c1317d3e5d36a9e4aac9f92d62 (diff) |
pose-widget: use unsigned char, sprinkle constopentrack-2.3-rc16
-rwxr-xr-x | pose-widget/glwidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pose-widget/glwidget.cpp b/pose-widget/glwidget.cpp index 74f12c27..8bf169df 100755 --- a/pose-widget/glwidget.cpp +++ b/pose-widget/glwidget.cpp @@ -171,9 +171,9 @@ void GLWidget::project_quad_texture() { + uv.x() * (origs[i][2].y() - origs[i][0].y()) + uv.y() * (origs[i][1].y() - origs[i][0].y()); - int r = orig[py * orig_pitch + px * orig_depth + 2]; - int g = orig[py * orig_pitch + px * orig_depth + 1]; - int b = orig[py * orig_pitch + px * orig_depth + 0]; + const unsigned char r = orig[py * orig_pitch + px * orig_depth + 2]; + const unsigned char g = orig[py * orig_pitch + px * orig_depth + 1]; + const unsigned char b = orig[py * orig_pitch + px * orig_depth + 0]; dest[y * dest_pitch + x * dest_depth + 0] = r; dest[y * dest_pitch + x * dest_depth + 1] = g; |