Commit 053dd05
committed
Load background image using existing texture system
- Removed manual QImage loading and texture setup for background image in MapCanvas::initializeGL().
- Background image is now loaded via loadTexture() in initTextures(), using the same fallback mechanism as other modding assets.
- Renamed 'background.png' to 'background-image.png' for consistency and alignment with naming in mmapper2.qrc.1 parent 75c1736 commit 053dd05
4 files changed
Lines changed: 9 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
258 | 261 | | |
259 | 262 | | |
260 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | 247 | | |
272 | 248 | | |
273 | 249 | | |
| |||
574 | 550 | | |
575 | 551 | | |
576 | 552 | | |
577 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
578 | 556 | | |
579 | 557 | | |
580 | 558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
Loading
0 commit comments