diff options
Diffstat (limited to 'test/dw_images_scaled.cc')
-rw-r--r-- | test/dw_images_scaled.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/dw_images_scaled.cc b/test/dw_images_scaled.cc index dfaf57b9..c9f6e76e 100644 --- a/test/dw_images_scaled.cc +++ b/test/dw_images_scaled.cc @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -58,13 +57,13 @@ static void imageDrawTimeout (void *data) buf[4 * x + 2] = imgRow * 255 / 199; buf[4 * x + 3] = (199 - imgRow) * 255 / 199; } - + imgbuf->copyRow (imgRow, buf); - image->drawRow (imgRow); + image->drawRow (imgRow); imgRow++; } } - + if(imgRow < 200) ::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL); } @@ -80,13 +79,13 @@ static void imageDrawTimeout (void *data) buf[3 * x + 1] = (399 - x) * 255 / 399; buf[3 * x + 2] = imgRow * 255 / 199; } - + imgbuf->copyRow (imgRow, buf); - image->drawRow (imgRow); + image->drawRow (imgRow); imgRow++; } } - + if(imgRow < 200) ::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL); } @@ -113,10 +112,11 @@ int main(int argc, char **argv) fontAttrs.size = 14; fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; + fontAttrs.letterSpacing = 0; styleAttrs.font = Font::create (layout, &fontAttrs); - styleAttrs.color = Color::createSimple (layout, 0x000000); - styleAttrs.backgroundColor = Color::createSimple (layout, 0xffffff); + styleAttrs.color = Color::create (layout, 0x000000); + styleAttrs.backgroundColor = Color::create (layout, 0xffffff); Style *widgetStyle = Style::create (layout, &styleAttrs); @@ -133,7 +133,7 @@ int main(int argc, char **argv) image = new dw::Image (""); textblock->addWidget (image, imageStyle); - textblock->addSpace (imageStyle); + textblock->addSpace (imageStyle); imageStyle->unref(); |