| 23 | } |
| 24 | |
| 25 | int AlignXOffset(int flags, const SDL_Rect &dest, int w) |
| 26 | { |
| 27 | if (flags & UIS_CENTER) |
| 28 | return (dest.w - w) / 2; |
| 29 | if (flags & UIS_RIGHT) |
| 30 | return dest.w - w; |
| 31 | return 0; |
| 32 | } |
| 33 | |
| 34 | } // namespace |
| 35 |
no outgoing calls
no test coverage detected