From dc2eca51ed110367df920bdef7d9117c1370a67d Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 15 Apr 2021 16:08:52 +0200 Subject: [PATCH] docs: use code-block for c Reviewed-by: Eric Anholt Part-of: --- docs/viewperf.rst | 2 +- docs/xlibdriver.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/viewperf.rst b/docs/viewperf.rst index 6b1acf5ab11..86fec8c81bc 100644 --- a/docs/viewperf.rst +++ b/docs/viewperf.rst @@ -121,7 +121,7 @@ Maya-03 test 2 This test makes some unusual calls to glRotate. For example: -:: +.. code-block:: c glRotate(50, 50, 50, 1); glRotate(100, 100, 100, 1); diff --git a/docs/xlibdriver.rst b/docs/xlibdriver.rst index e07aed6c843..11e89ae6b0e 100644 --- a/docs/xlibdriver.rst +++ b/docs/xlibdriver.rst @@ -140,7 +140,7 @@ GLX_MESA_pixmap_colormap This extension adds the GLX function: -:: +.. code-block:: c GLXPixmap glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap ) @@ -173,7 +173,7 @@ The GLX_MESA_release_buffers extension allows a client to explicitly deallocate the ancillary buffers by calling glxReleaseBuffersMESA() just before an X window is destroyed. For example: -:: +.. code-block:: c #ifdef GLX_MESA_release_buffers glXReleaseBuffersMESA( dpy, window );