Changeset View
Changeset View
Standalone View
Standalone View
libs/image/tests/kis_filter_weights_applicator_test.cpp
Show First 20 Lines • Show All 558 Lines • ▼ Show 20 Line(s) | 556 | for (int i = 0; i < pixelsNumber; i++) { | |||
---|---|---|---|---|---|
559 | 559 | | |||
560 | QColor c = QColor(10, 0, 0, 255); | 560 | QColor c = QColor(10, 0, 0, 255); | ||
561 | dev->setPixel(x, y, c); | 561 | dev->setPixel(x, y, c); | ||
562 | } | 562 | } | ||
563 | 563 | | |||
564 | return dev; | 564 | return dev; | ||
565 | } | 565 | } | ||
566 | 566 | | |||
567 | void prepareUniformPixels(quint8 r[], quint8 a[], int pixelsNumber, bool horizontal) | 567 | void prepareUniformPixels(quint8 r[], quint8 a[], int pixelsNumber, bool /*horizontal*/) | ||
568 | { | 568 | { | ||
569 | for (int i = 0; i < pixelsNumber; i++) { | 569 | for (int i = 0; i < pixelsNumber; i++) { | ||
570 | 570 | | |||
571 | QColor c = QColor(10, 0, 0, 255); | 571 | QColor c = QColor(10, 0, 0, 255); | ||
572 | r[i] = c.red(); | 572 | r[i] = c.red(); | ||
573 | a[i] = c.alpha(); | 573 | a[i] = c.alpha(); | ||
574 | } | 574 | } | ||
575 | 575 | | |||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |