Acfboy commented on issue #18566: URL: https://github.com/apache/nuttx/issues/18566#issuecomment-5232713457
Hi @ghaerr, I found an issue with `nxdraw.c`. It seems to be a drawing library intended for client applications to use. In the current code, the window manager directly uses it, relying on the fact that client and server share the same GrXXX API names. In a normal process-based build, the GrXXX calls inside `nxdraw.c` naturally resolve to the server-side implementations within the server process. However, in our NuttX flat build we rename the server-side GrXXX symbols to SVR_GrXXX to avoid symbol collisions in the shared address space. This leaves nxdraw.c in a dilemma: - If we do NOT rename `nxdraw.c`, then when the window manager calls into it, the GrXXX calls inside cannot reach the server implementations. - If we DO rename it, then other (client) applications can no longer use nxdraw.c as a client-side library. One option could be to move nxPaintNCArea, the only nxdraw function the window manager actually uses, into the WM code itself. What do you think? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
