mirror of
https://github.com/martravi/wiiqt6.git
synced 2024-11-28 07:34:19 +01:00
* made a bug
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@33 389f4c8b-5dfe-645f-db0e-df882bc27289
This commit is contained in:
parent
271429a006
commit
7570278999
@ -151,9 +151,8 @@ void MainWindow::on_actionLoad_triggered()
|
||||
// SHOW TPL ON SCREEN
|
||||
//if you have a format that uses palette data, you need to add that to the last arg here
|
||||
QImage img = ConvertTextureToImage( pic_data, pic_head.width, pic_head.height, pic_head.format );
|
||||
if( img.isNull() )//error converting
|
||||
continue;
|
||||
|
||||
if( !img.isNull() )//error converting
|
||||
{
|
||||
QGraphicsPixmapItem *item = new QGraphicsPixmapItem( QPixmap::fromImage( img ) );
|
||||
if( x + img.width() + spacing >= (quint32)gv->width() )//this row is filled up, skip down and start a new row
|
||||
{
|
||||
@ -166,6 +165,7 @@ void MainWindow::on_actionLoad_triggered()
|
||||
item->setPos( x, y );
|
||||
gs.addItem( item );
|
||||
x += img.width() + spacing;
|
||||
}
|
||||
|
||||
// SAVE TPL TO FILE
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user