diff options
author | Brian Paul <brianp@vmware.com> | 2009-08-12 09:51:56 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-08-12 10:32:22 -0600 |
commit | 4a4039e1996a65ebced473fa03a3a970825746ff (patch) | |
tree | fcbe7d139c8e0a6d5f9c349bfa3a9eb81a00a68b /src/gallium/state_trackers/glx/xlib/fakeglx_fonts.c | |
parent | 1e52b8b4e02c887cb493e5e2bde902b54e9c72fd (diff) |
gallium/glx/xlib: overhaul and simplification of the Gallium Xlib-based GLX
The old GLX dispatch table stuff isn't needed (same story for the Mesa/Xlib
driver). The intention of that code was being able to switch on the fly
between the real GLX library and the fake/Xlib-based emulation. That hasn't
been used in a long time.
Next up: some file renaming.
Diffstat (limited to 'src/gallium/state_trackers/glx/xlib/fakeglx_fonts.c')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/fakeglx_fonts.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/fakeglx_fonts.c b/src/gallium/state_trackers/glx/xlib/fakeglx_fonts.c index e359046756..45b91c850a 100644 --- a/src/gallium/state_trackers/glx/xlib/fakeglx_fonts.c +++ b/src/gallium/state_trackers/glx/xlib/fakeglx_fonts.c @@ -1,9 +1,10 @@ - /* * Mesa 3-D graphics library - * Version: 3.5 + * Version: 7.6 * - * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. + * Copyright (C) 1995 Thorsten.Ohl @ Physik.TH-Darmstadt.de + * Copyright (C) 1999-2008 Brian Paul All Rights Reserved. + * Copyright (C) 2009 VMware, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -24,13 +25,14 @@ */ -/* xfonts.c -- glXUseXFont() for Mesa written by - * Copyright (C) 1995 Thorsten.Ohl @ Physik.TH-Darmstadt.de +/** + * Fake implementation of glXUseXFont(). + * XXX rename this file to glx_usefont.c */ + #include "context.h" #include "imports.h" -#include "fakeglx.h" #include <GL/glx.h> @@ -210,7 +212,7 @@ isvalid(XFontStruct * fs, unsigned int which) void -Fake_glXUseXFont(Font font, int first, int count, int listbase) +glXUseXFont(Font font, int first, int count, int listbase) { Display *dpy; Window win; @@ -228,7 +230,8 @@ Fake_glXUseXFont(Font font, int first, int count, int listbase) dpy = glXGetCurrentDisplay(); if (!dpy) return; /* I guess glXMakeCurrent wasn't called */ - win = RootWindow(dpy, DefaultScreen(dpy)); + i = DefaultScreen(dpy); + win = RootWindow(dpy, i); fs = XQueryFont(dpy, font); if (!fs) { |