guard surface in addsurfaceglobaloffset
This commit is contained in:
parent
da10022d84
commit
5a146e9d90
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,9 @@
|
||||||
#include "../Compositor.hpp"
|
#include "../Compositor.hpp"
|
||||||
|
|
||||||
void addSurfaceGlobalOffset(SSurfaceTreeNode* node, int* lx, int* ly) {
|
void addSurfaceGlobalOffset(SSurfaceTreeNode* node, int* lx, int* ly) {
|
||||||
|
if (!node->pSurface)
|
||||||
|
return; // ? how does this happen sometimes
|
||||||
|
|
||||||
*lx += node->pSurface->sx;
|
*lx += node->pSurface->sx;
|
||||||
*ly += node->pSurface->sy;
|
*ly += node->pSurface->sy;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue