| 784 | } |
| 785 | |
| 786 | void Render::renderImage(Image* dst_image, const Image* src_image, |
| 787 | const Palette* pal, |
| 788 | int x, int y, |
| 789 | Zoom zoom, int opacity, BlendMode blendMode) |
| 790 | { |
| 791 | CompositeImageFunc compositeImage = get_image_composition( |
| 792 | dst_image->pixelFormat(), |
| 793 | src_image->pixelFormat(), zoom); |
| 794 | if (!compositeImage) |
| 795 | return; |
| 796 | |
| 797 | compositeImage(dst_image, src_image, pal, |
| 798 | gfx::Clip(x, y, 0, 0, |
| 799 | zoom.apply(src_image->width()), |
| 800 | zoom.apply(src_image->height())), |
| 801 | opacity, blendMode, zoom); |
| 802 | } |
| 803 | |
| 804 | void Render::renderLayer( |
| 805 | const Layer* layer, |
no test coverage detected