equal
deleted
inserted
replaced
176 const QSizeF &renderSize, |
176 const QSizeF &renderSize, |
177 Qt::AspectRatioMode aspectRatioMode, |
177 Qt::AspectRatioMode aspectRatioMode, |
178 void * destination, int stride, |
178 void * destination, int stride, |
179 QImage::Format imageFormat) |
179 QImage::Format imageFormat) |
180 { |
180 { |
181 initialize(renderSize.width(), renderSize.height()); |
|
182 bool isIconCreated = false; |
181 bool isIconCreated = false; |
183 TSize surfaceSize(TSize(renderSize.width(), renderSize.height())); |
182 TSize surfaceSize(TSize(renderSize.width(), renderSize.height())); |
184 |
183 |
185 if (!vgiSymbianInit) { |
184 if (!vgiSymbianInit) { |
186 if (!initialize(surfaceSize.iWidth, surfaceSize.iHeight)) { |
185 if (!initialize(surfaceSize.iWidth, surfaceSize.iHeight)) { |
211 err = VGICopyToTarget(format, stride, destination, 0, NULL, VGI_COPY_TRANSPARENT_PIXELS); |
210 err = VGICopyToTarget(format, stride, destination, 0, NULL, VGI_COPY_TRANSPARENT_PIXELS); |
212 if (err == VGI_OK) { |
211 if (err == VGI_OK) { |
213 isIconCreated = true; |
212 isIconCreated = true; |
214 } |
213 } |
215 |
214 |
216 // destroy the previous surface, |
|
217 // as we don't have a way to clear the surface |
|
218 terminate(); |
|
219 |
|
220 return isIconCreated; |
215 return isIconCreated; |
221 } |
216 } |
222 |
217 |