Jelajahi Sumber

x-y confusions

David Rose 19 tahun lalu
induk
melakukan
d3fb3d7a46

+ 1 - 1
pandaapp/src/indexify/indexImage.cxx

@@ -68,7 +68,7 @@ add_photo(int photo_index) {
   int xi = count - (yi * thumb_count_x);
   int xi = count - (yi * thumb_count_x);
 
 
   int x = thumb_x_space + xi * (thumb_width + thumb_x_space);
   int x = thumb_x_space + xi * (thumb_width + thumb_x_space);
-  int y = thumb_y_space + yi * (thumb_width + thumb_caption_height + thumb_x_space);
+  int y = thumb_y_space + yi * (thumb_height + thumb_caption_height + thumb_y_space);
 
 
   PhotoInfo pinfo;
   PhotoInfo pinfo;
   pinfo._photo_index = photo_index;
   pinfo._photo_index = photo_index;

+ 1 - 1
pandaapp/src/indexify/indexParameters.h

@@ -34,7 +34,7 @@
 // row).  It will never be larger than this.
 // row).  It will never be larger than this.
 extern int max_index_size_array[2];
 extern int max_index_size_array[2];
 #define max_index_width (max_index_size_array[0])
 #define max_index_width (max_index_size_array[0])
-#define max_index_height (max_index_size_array[0])
+#define max_index_height (max_index_size_array[1])
 
 
 // The size of the individual thumbnail images, including the frames
 // The size of the individual thumbnail images, including the frames
 // (if present).  Thumbnail images are scaled to fit within this box.
 // (if present).  Thumbnail images are scaled to fit within this box.