mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
x-y confusions
This commit is contained in:
parent
413b358ff1
commit
d3fb3d7a46
@ -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;
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user