Update layLayoutViewConfigPages.cc

Removed commented section - it's actually no longer required.
This commit is contained in:
Matthias Köfferlein 2018-08-12 23:22:39 +02:00 committed by GitHub
parent f7836de39d
commit 03c1a74d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 16 deletions

View File

@ -1182,22 +1182,6 @@ LayoutViewConfigPage6::update ()
QImage image (w * dpr, h * dpr, QImage::Format_RGB32);
image.setDevicePixelRatio(dpr);
image.fill (color0.rgb ());
// if (s >= 0) {
// const uint32_t * const *dp = m_pattern.pattern ((unsigned int) s).pattern ();
// for (unsigned int l = 0; l < h; ++l, ++dp) {
// uint32_t m = **dp;
// if (l == 0 || l == h - 1) {
// m |= ((1 << w) - 1);
// } else {
// m |= ((1 << (w - 1)) | 1);
// }
// color_t *pt = (color_t *) image.scanLine (h - 1 - l);
// for (unsigned int b = 0; b < w; ++b) {
// *pt++ = (m & 1) ? color1 : color0;
// m >>= 1;
// }
// }
// }
// copying code from layLayerToolbox.cc
QBitmap bitmap = m_pattern.pattern ((unsigned int) s).get_bitmap (w * dpr, h * dpr);