Commit 99f541c1 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Font.c: add hint of deliberate pointer misuse

parent 58b3c8cd
...@@ -452,6 +452,10 @@ Bool nxagentFontLookUp(const char *name) ...@@ -452,6 +452,10 @@ Bool nxagentFontLookUp(const char *name)
} }
} }
/*
* NXAGENT uses useless screen pointer to pass the original font name
* to realizeFont, could be a source of problems in the future.
*/
Bool nxagentRealizeFont(ScreenPtr pScreen, FontPtr pFont) Bool nxagentRealizeFont(ScreenPtr pScreen, FontPtr pFont)
{ {
#ifdef HAS_XFONT2 #ifdef HAS_XFONT2
......
...@@ -290,9 +290,10 @@ doOpenFont(ClientPtr client, OFclosurePtr c) ...@@ -290,9 +290,10 @@ doOpenFont(ClientPtr client, OFclosurePtr c)
if (pScr->RealizeFont) if (pScr->RealizeFont)
{ {
#ifdef NXAGENT_SERVER #ifdef NXAGENT_SERVER
/* NXAGENT uses useless screen pointer to pass the original font name /*
* to realizeFont, could be a source of problems in the future. * NXAGENT uses useless screen pointer to pass the original font name
*/ * to realizeFont, could be a source of problems in the future.
*/
if (!(*pScr->RealizeFont) ((ScreenPtr)nxagentOrigFontName, pfont)) if (!(*pScr->RealizeFont) ((ScreenPtr)nxagentOrigFontName, pfont))
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment