glamor: replace DDXPoint by xPoint

DDXPoint is just an alias to xPoint

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2026-02-10 13:17:08 +01:00
committed by Enrico Weigelt
parent cff61f6fe6
commit 1f611b8852
4 changed files with 7 additions and 7 deletions

View File

@@ -776,7 +776,7 @@ glamor_copy_plane(DrawablePtr src, DrawablePtr dst, GCPtr gc,
}
void
glamor_copy_window(WindowPtr window, DDXPointRec old_origin, RegionPtr src_region)
glamor_copy_window(WindowPtr window, xPoint old_origin, RegionPtr src_region)
{
PixmapPtr pixmap = glamor_get_drawable_pixmap(&window->drawable);
DrawablePtr drawable = &pixmap->drawable;

View File

@@ -74,16 +74,16 @@ glamor_poly_lines_solid_gl(DrawablePtr drawable, GCPtr gc,
/* Set up the vertex buffers for the points */
v = glamor_get_vbo_space(drawable->pScreen,
(n + add_last) * sizeof (DDXPointRec),
(n + add_last) * sizeof(xPoint),
&vbo_offset);
glEnableVertexAttribArray(GLAMOR_VERTEX_POS);
glVertexAttribPointer(GLAMOR_VERTEX_POS, 2, GL_SHORT, GL_FALSE,
sizeof (DDXPointRec), vbo_offset);
sizeof(xPoint), vbo_offset);
if (mode == CoordModePrevious) {
int i;
DDXPointRec here = { 0, 0 };
xPoint here = { 0, 0 };
for (i = 0; i < n; i++) {
here.x += points[i].x;
@@ -91,7 +91,7 @@ glamor_poly_lines_solid_gl(DrawablePtr drawable, GCPtr gc,
v[i] = here;
}
} else {
memcpy(v, points, n * sizeof (DDXPointRec));
memcpy(v, points, n * sizeof(xPoint));
}
if (add_last) {

View File

@@ -1064,7 +1064,7 @@ void glamor_egl_screen_init(ScreenPtr screen,
Bool glamor_change_window_attributes(WindowPtr pWin, unsigned long mask);
void glamor_copy_window(WindowPtr window, DDXPointRec old_origin, RegionPtr src_region);
void glamor_copy_window(WindowPtr window, xPoint old_origin, RegionPtr src_region);
#include "glamor_utils.h"

View File

@@ -74,7 +74,7 @@ glamor_poly_segment_solid_gl(DrawablePtr drawable, GCPtr gc,
glEnableVertexAttribArray(GLAMOR_VERTEX_POS);
glVertexAttribPointer(GLAMOR_VERTEX_POS, 2, GL_SHORT, GL_FALSE,
sizeof(DDXPointRec), vbo_offset);
sizeof(xPoint), vbo_offset);
if (add_last) {
int i, j;