A Simple X Image Viewer
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

22 řádky
810 B

  1. /* default window dimensions: *
  2. * (also controllable via -w option) */
  3. #define WIN_WIDTH 800
  4. #define WIN_HEIGHT 600
  5. /* default color to use for window background: *
  6. * (see X(7) "COLOR NAMES" section for valid values) */
  7. #define BG_COLOR "#888888"
  8. /* how should images be scaled when they are loaded?: *
  9. * (also controllable via -d/-s/-Z/-z options) *
  10. * SCALE_DOWN: 100%, but fit large images into window, *
  11. * SCALE_FIT: fit all images into window, *
  12. * SCALE_ZOOM: use current zoom level, 100% at startup */
  13. #define SCALE_MODE SCALE_DOWN
  14. /* levels (percent) to use when zooming via '-' and '+': */
  15. static const float zoom_levels[] = {
  16. 12.5, 25.0, 50.0, 75.0,
  17. 100.0, 150.0, 200.0, 400.0, 800.0
  18. };