A Simple X Image Viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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