mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
remove nested lock
This commit is contained in:
parent
cf01ef9cd6
commit
0f359f1f79
@ -601,9 +601,8 @@ do_compute_pixels(int x_size, int y_size) {
|
|||||||
_pl = int((_l * x_size) + 0.5);
|
_pl = int((_l * x_size) + 0.5);
|
||||||
_pr = int((_r * x_size) + 0.5);
|
_pr = int((_r * x_size) + 0.5);
|
||||||
|
|
||||||
const GraphicsOutput *win = get_window();
|
nassertv(_window != (GraphicsOutput *)NULL);
|
||||||
nassertv(win != (GraphicsOutput *)NULL);
|
if (_window->get_inverted()) {
|
||||||
if (win->get_inverted()) {
|
|
||||||
// The window is inverted; compute the DisplayRegion accordingly.
|
// The window is inverted; compute the DisplayRegion accordingly.
|
||||||
_pb = int(((1.0f - _t) * y_size) + 0.5);
|
_pb = int(((1.0f - _t) * y_size) + 0.5);
|
||||||
_pt = int(((1.0f - _b) * y_size) + 0.5);
|
_pt = int(((1.0f - _b) * y_size) + 0.5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user