… | |
… | |
242 | geom_flags |= WidthValue|HeightValue; |
242 | geom_flags |= WidthValue|HeightValue; |
243 | } |
243 | } |
244 | else if (!strcasecmp (arr[i], "propscale")) |
244 | else if (!strcasecmp (arr[i], "propscale")) |
245 | { |
245 | { |
246 | new_flags |= BG_KEEP_ASPECT; |
246 | new_flags |= BG_KEEP_ASPECT; |
|
|
247 | w = h = windowScale; |
|
|
248 | geom_flags |= WidthValue|HeightValue; |
247 | } |
249 | } |
248 | else if (!strcasecmp (arr[i], "hscale")) |
250 | else if (!strcasecmp (arr[i], "hscale")) |
249 | { |
251 | { |
250 | new_flags |= BG_TILE; |
252 | new_flags |= BG_TILE; |
251 | w = windowScale; |
253 | w = windowScale; |
… | |
… | |
1275 | bg_pmap_width = window_width; |
1277 | bg_pmap_width = window_width; |
1276 | bg_pmap_height = window_height; |
1278 | bg_pmap_height = window_height; |
1277 | } |
1279 | } |
1278 | |
1280 | |
1279 | /* straightforward pixmap copy */ |
1281 | /* straightforward pixmap copy */ |
1280 | while (sx < 0) sx += root_width; |
1282 | while (sx < 0) sx += root_pmap_width; |
1281 | while (sy < 0) sy += root_height; |
1283 | while (sy < 0) sy += root_pmap_height; |
1282 | |
1284 | |
1283 | gcv.tile = recoded_root_pmap; |
1285 | gcv.tile = recoded_root_pmap; |
1284 | gcv.fill_style = FillTiled; |
1286 | gcv.fill_style = FillTiled; |
1285 | gcv.ts_x_origin = -sx; |
1287 | gcv.ts_x_origin = -sx; |
1286 | gcv.ts_y_origin = -sy; |
1288 | gcv.ts_y_origin = -sy; |