mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
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:
committed by
Enrico Weigelt
parent
cff61f6fe6
commit
1f611b8852
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user