Commit 073316d
committed
bflibrary: Proper way for keeping rescaled sprite sizes
Previous attempt at keeping the scaling size was not very good.
This time we're ensuring sprites are scaled to exactly the
expected size, not by enlarging first pixel, but by adding one
pixel to several first rows of the sprite.
Previously I considered a flag to enable the new scaling, but that
is not how engines should work - app requests size, engine should
deliver. Not deliver something similar, but exactly what was asked.1 parent 9d7bca0 commit 073316d
2 files changed
Lines changed: 33 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
| 75 | + | |
74 | 76 | | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
| 80 | + | |
| 81 | + | |
76 | 82 | | |
| 83 | + | |
77 | 84 | | |
| 85 | + | |
78 | 86 | | |
| 87 | + | |
| 88 | + | |
79 | 89 | | |
| 90 | + | |
80 | 91 | | |
81 | 92 | | |
82 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
| |||
122 | 132 | | |
123 | 133 | | |
124 | 134 | | |
125 | | - | |
126 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
127 | 145 | | |
128 | 146 | | |
129 | 147 | | |
| |||
0 commit comments