- if( use_scaler ) {
- for( int i=0,n=proxy_assets->size(); i<n; ++i ) {
- Asset *proxy_asset = (Asset *)proxy_assets->get(i);
- proxy_asset->width = orig_assets->get(i)->get_w();
- proxy_asset->height = orig_assets->get(i)->get_h();
- }
+ int asset_scale = session->proxy_scale;
+ if( asset_scale == 1 ) asset_scale = 0;
+ int scale = !asset_scale ? 1 : asset_scale;
+// update proxy geom using scale
+ for( int i=0; i<proxy_assets->size(); ++i ) {
+ Asset *proxy_asset = (Asset *)proxy_assets->get(i);
+ proxy_asset->proxy_scale = asset_scale;
+ proxy_asset->width = proxy_asset->actual_width * scale;
+ proxy_asset->height = proxy_asset->actual_height * scale;