* Draws a section of the empty flask cel on top of the panel to create the illusion * of the flask getting empty. This function takes a cel and draws a * horizontal stripe of height (max-min) onto the given buffer. * @param out Target buffer. * @param position Buffer coordinate. * @param celBuf Buffer of the empty flask cel. * @param y0 Top of the flask cel section to draw. * @param
| 189 | * @param y1 Bottom of the flask cel section to draw. |
| 190 | */ |
| 191 | void DrawFlaskTop(const Surface &out, Point position, const Surface &celBuf, int y0, int y1) |
| 192 | { |
| 193 | out.BlitFrom(celBuf, MakeSdlRect(0, static_cast<decltype(SDL_Rect {}.y)>(y0), celBuf.w(), y1 - y0), position); |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * Draws the dome of the flask that protrudes above the panel top line. |
no test coverage detected