sdl_zoom.h 578 B

12345678910111213141516171819202122232425
  1. /*
  2. * SDL_zoom - surface scaling
  3. *
  4. * Copyright (c) 2009 Citrix Systems, Inc.
  5. *
  6. * Derived from: SDL_rotozoom, LGPL (c) A. Schiffler from the SDL_gfx library.
  7. * Modifications by Stefano Stabellini.
  8. *
  9. * This work is licensed under the terms of the GNU GPL version 2.
  10. * See the COPYING file in the top-level directory.
  11. *
  12. */
  13. #ifndef SDL_zoom_h
  14. #define SDL_zoom_h
  15. #include <SDL.h>
  16. #define SMOOTHING_OFF 0
  17. #define SMOOTHING_ON 1
  18. int sdl_zoom_blit(SDL_Surface *src_sfc, SDL_Surface *dst_sfc,
  19. int smooth, SDL_Rect *src_rect);
  20. #endif /* SDL_zoom_h */