mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 14:03:17 +00:00
xnest: use dixAddAtom()
Use the new helper for creating atoms on demand. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
77a91598fe
commit
9217a30960
@ -22,6 +22,8 @@ is" without express or implied warranty.
|
||||
#include <X11/fonts/fontstruct.h>
|
||||
#include <X11/fonts/libxfont2.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "regionstr.h"
|
||||
#include "dixfontstr.h"
|
||||
@ -37,7 +39,6 @@ int xnestFontPrivateIndex;
|
||||
Bool
|
||||
xnestRealizeFont(ScreenPtr pScreen, FontPtr pFont)
|
||||
{
|
||||
Atom name_atom, value_atom;
|
||||
int nprops;
|
||||
FontPropPtr props;
|
||||
int i;
|
||||
@ -45,8 +46,8 @@ xnestRealizeFont(ScreenPtr pScreen, FontPtr pFont)
|
||||
|
||||
xfont2_font_set_private(pFont, xnestFontPrivateIndex, NULL);
|
||||
|
||||
name_atom = MakeAtom("FONT", 4, TRUE);
|
||||
value_atom = 0L;
|
||||
Atom name_atom = dixAddAtom("FONT");
|
||||
Atom value_atom = 0L;
|
||||
|
||||
nprops = pFont->info.nprops;
|
||||
props = pFont->info.props;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user