mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-23 16:43:58 +08:00
do not use fd for get_shared_surface for sharedfb schema under PROC runmode
This commit is contained in:
@@ -800,17 +800,15 @@ static int get_shared_surface (int cli, int clifd, void* buff, size_t len)
|
||||
/* get the rendering surface */
|
||||
static int get_shared_surface (int cli, int clifd, void* buff, size_t len)
|
||||
{
|
||||
int fd = -1;
|
||||
const char* name = buff;
|
||||
SHAREDSURFINFO info = { 0, 0 };
|
||||
|
||||
#ifdef _MGGAL_DRM
|
||||
extern int __drm_get_shared_screen_surface (const char*, SHAREDSURFINFO*);
|
||||
|
||||
fd = __drm_get_shared_screen_surface (name, &info);
|
||||
__drm_get_shared_screen_surface (name, &info);
|
||||
#endif
|
||||
|
||||
return ServerSendReplyEx (clifd, &info, sizeof (SHAREDSURFINFO), fd);
|
||||
return ServerSendReply (clifd, &info, sizeof (SHAREDSURFINFO));
|
||||
}
|
||||
#endif /* not IS_COMPOSITING_SCHEMA */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user