mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fix error in get_region_pixels_i that causes crash in tinydisplay
This commit is contained in:
parent
0a84dd9ca3
commit
4ffb512fae
@ -580,9 +580,9 @@ get_region_pixels_i(int i, int &xo, int &yo, int &w, int &h) const {
|
||||
CDReader cdata(_cycler);
|
||||
const Region ®ion = cdata->_regions[i];
|
||||
xo = region._pixels_i[0];
|
||||
yo = region._pixels_i[2];
|
||||
yo = region._pixels_i[3];
|
||||
w = region._pixels_i[1] - xo;
|
||||
h = region._pixels_i[3] - yo;
|
||||
h = region._pixels_i[2] - yo;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -1068,9 +1068,9 @@ INLINE void DisplayRegionPipelineReader::
|
||||
get_region_pixels_i(int i, int &xo, int &yo, int &w, int &h) const {
|
||||
const DisplayRegion::Region ®ion = _cdata->_regions[i];
|
||||
xo = region._pixels_i[0];
|
||||
yo = region._pixels_i[2];
|
||||
yo = region._pixels_i[3];
|
||||
w = region._pixels_i[1] - xo;
|
||||
h = region._pixels_i[3] - yo;
|
||||
h = region._pixels_i[2] - yo;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user