| 248 | } |
| 249 | } |
| 250 | |
| 251 | TitleShadowOffset SubtitleShadowOffset(int width2D, int height2D) |
| 252 | { |
| 253 | // Equal pixel drop on both axes: offsetX*width2D == offsetY*height2D. |
| 254 | const float offsetY = 0.002f; |
| 255 | const float offsetX = width2D > 0 ? offsetY * float(height2D) / float(width2D) : offsetY; |
| 256 | return {offsetX, offsetY}; |
| 257 | } |
| 258 | |
| 259 | void TitleEffectBasic::Init(RString text) |
no outgoing calls
no test coverage detected