tests: Remove GLfloat usage.
This commit is contained in:
committed by
Kristian Høgsberg
parent
490d02a96d
commit
71c474416a
+1
-2
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <GLES2/gl2.h>
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@@ -54,7 +53,7 @@ read_timer(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static double
|
static double
|
||||||
det3x3(const GLfloat *c0, const GLfloat *c1, const GLfloat *c2)
|
det3x3(const float *c0, const float *c1, const float *c2)
|
||||||
{
|
{
|
||||||
return (double)
|
return (double)
|
||||||
c0[0] * c1[1] * c2[2] +
|
c0[0] * c1[1] * c2[2] +
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
TEST(surface_transform)
|
TEST(surface_transform)
|
||||||
{
|
{
|
||||||
struct weston_surface *surface;
|
struct weston_surface *surface;
|
||||||
GLfloat x, y;
|
float x, y;
|
||||||
|
|
||||||
surface = weston_surface_create(compositor);
|
surface = weston_surface_create(compositor);
|
||||||
weston_surface_configure(surface, 100, 100, 200, 200);
|
weston_surface_configure(surface, 100, 100, 200, 200);
|
||||||
|
|||||||
+1
-2
@@ -27,7 +27,6 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
#include <GLES2/gl2.h> /* needed for GLfloat */
|
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
|
|
||||||
struct display {
|
struct display {
|
||||||
@@ -42,7 +41,7 @@ struct input {
|
|||||||
struct wl_seat *seat;
|
struct wl_seat *seat;
|
||||||
struct wl_pointer *pointer;
|
struct wl_pointer *pointer;
|
||||||
struct wl_keyboard *keyboard;
|
struct wl_keyboard *keyboard;
|
||||||
GLfloat x, y;
|
float x, y;
|
||||||
uint32_t button_mask;
|
uint32_t button_mask;
|
||||||
struct surface *pointer_focus;
|
struct surface *pointer_focus;
|
||||||
struct surface *keyboard_focus;
|
struct surface *keyboard_focus;
|
||||||
|
|||||||
Reference in New Issue
Block a user