diff options
Diffstat (limited to 'pose-widget/pose-widget.cpp')
-rw-r--r-- | pose-widget/pose-widget.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp index 50606c00..c25ad3eb 100644 --- a/pose-widget/pose-widget.cpp +++ b/pose-widget/pose-widget.cpp @@ -12,13 +12,15 @@ #include "compat/check-visible.hpp" #include <cmath> #include <algorithm> + #include <QPainter> #include <QPaintEvent> -#include <QPalette> -#include <QGroupBox> #include <QDebug> +// XXX this needs rewriting in terms of scanline rendering -sh 20180105 +// see: <https://mikro.naprvyraz.sk/docs/Coding/2/TEXTURE4.TXT> + using namespace pose_widget_impl; pose_transform::pose_transform(QWidget* dst) : @@ -279,8 +281,8 @@ void pose_transform::project_quad_texture() const unsigned orig_pitch = tex.bytesPerLine(); const unsigned dest_pitch = image.bytesPerLine(); - unsigned char const* const restrict_ptr orig = tex.constBits(); - unsigned char* const restrict_ptr dest = image.bits(); + unsigned char const* restrict_ptr orig = tex.constBits(); + unsigned char* restrict_ptr dest = image.bits(); const int orig_depth = tex.depth() / 8; const int dest_depth = image.depth() / 8; |