mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
arch/sim: Fix X11 segmentation fault when CONFIG_SIM_X11NOSHM isn't enabled
up_x11mapsharedmem should assign the share memory to g_framebuffer
This commit is contained in:
@@ -317,8 +317,8 @@ static inline int up_x11mapsharedmem(int depth, unsigned int fblen)
|
|||||||
goto shmerror;
|
goto shmerror;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_framebuffer = (unsigned char *)g_image->data;
|
||||||
g_shmcheckpoint++;
|
g_shmcheckpoint++;
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user