lib: use GLib numeric types

I'm trying to be consistent and keep with GLib type definitions except for
char/int/double/float.
This commit is contained in:
Christian Hergert 2023-06-15 16:09:22 -07:00
parent 5a55efe987
commit a8b605f401
3 changed files with 19 additions and 19 deletions

View File

@ -271,7 +271,7 @@ mks_display_picture_legacy_event_cb (MksDisplayPicture *self,
case GDK_TOUCH_END:
{
double guest_x, guest_y;
uint64_t num_slot = GPOINTER_TO_UINT (sequence);
guint64 num_slot = GPOINTER_TO_UINT (sequence);
MksTouchEventKind kind;
if (event_type == GDK_TOUCH_BEGIN)

View File

@ -27,13 +27,13 @@
G_BEGIN_DECLS
GLuint mks_gl_context_import_dmabuf (GdkGLContext *context,
uint32_t format,
unsigned int width,
unsigned int height,
uint32_t n_planes,
guint32 format,
guint width,
guint height,
guint32 n_planes,
const int *fds,
const uint32_t *strides,
const uint32_t *offsets,
const uint64_t *modifiers);
const guint32 *strides,
const guint32 *offsets,
const guint64 *modifiers);
G_END_DECLS

View File

@ -35,14 +35,14 @@
GLuint
mks_gl_context_import_dmabuf (GdkGLContext *context,
uint32_t format,
unsigned int width,
unsigned int height,
uint32_t n_planes,
guint32 format,
guint width,
guint height,
guint32 n_planes,
const int *fds,
const uint32_t *strides,
const uint32_t *offsets,
const uint64_t *modifiers)
const guint32 *strides,
const guint32 *offsets,
const guint64 *modifiers)
{
GdkDisplay *display;
EGLDisplay egl_display;