/[classpath]/classpath/native/jni/qt-peer/qtimage.cpp
ViewVC logotype

Diff of /classpath/native/jni/qt-peer/qtimage.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by robilad, Mon Aug 15 21:53:12 2005 UTC revision 1.3 by smarothy, Tue Aug 16 23:22:09 2005 UTC
# Line 292  JNIEXPORT void JNICALL Java_gnu_java_awt Line 292  JNIEXPORT void JNICALL Java_gnu_java_awt
292    assert( image );    assert( image );
293    QPainter *painter = getPainter( env, graphics );    QPainter *painter = getPainter( env, graphics );
294    assert( painter );    assert( painter );
   
295    if(composite == JNI_TRUE)    if(composite == JNI_TRUE)
296      painter->fillRect ( x, y, image->width(), image->height(),      painter->fillRect ( x, y, image->width(), image->height(),
297                          QColor(bg_red, bg_green, bg_blue ) );                          QColor(bg_red, bg_green, bg_blue ) );
298    painter->drawImage ( QPoint(x, y), *image );    painter->drawImage ( QPoint(x, y), *image );
299  }  }
300    
# Line 371  Java_gnu_java_awt_peer_qt_QtImage_drawPi Line 370  Java_gnu_java_awt_peer_qt_QtImage_drawPi
370    QRectF *dstRect = new QRectF((qreal)dstx, (qreal)dsty,    QRectF *dstRect = new QRectF((qreal)dstx, (qreal)dsty,
371                                 (qreal)dstwidth, (qreal)dstheight);                                 (qreal)dstwidth, (qreal)dstheight);
372        
373    QImage image = originalImage->mirrored ( (flipx == JNI_TRUE),    QImage image;
374                                             (flipy == JNI_TRUE) );    if( flipx == JNI_TRUE || flipy == JNI_TRUE)
375        image = originalImage->mirrored ( (flipx == JNI_TRUE),
376                                          (flipy == JNI_TRUE) );
377      else
378        image = *originalImage;
379    
380    if(composite == JNI_TRUE)    if(composite == JNI_TRUE)
381      painter->fillRect( *dstRect, QColor(bg_red, bg_green, bg_blue ) );      painter->fillRect( *dstRect, QColor(bg_red, bg_green, bg_blue ) );
382    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26