texture: Make the texture id a guint

Texture IDs are unsigned, so treat them like that.
This commit is contained in:
Benjamin Otte 2018-02-02 14:58:12 +01:00
parent fcaa9aa22d
commit df0b4d6684
3 changed files with 5 additions and 5 deletions

View File

@ -441,7 +441,7 @@ struct _GdkGLTexture {
GdkTexture parent_instance;
GdkGLContext *context;
int id;
guint id;
cairo_surface_t *saved;
@ -535,7 +535,7 @@ gdk_gl_texture_get_context (GdkGLTexture *self)
return self->context;
}
int
guint
gdk_gl_texture_get_id (GdkGLTexture *self)
{
return self->id;
@ -711,7 +711,7 @@ gdk_texture_new_from_file (GFile *file,
**/
GdkTexture *
gdk_texture_new_for_gl (GdkGLContext *context,
int id,
guint id,
int width,
int height,
GDestroyNotify destroy,

View File

@ -58,7 +58,7 @@ GdkTexture * gdk_texture_new_from_file (GFile
GDK_AVAILABLE_IN_3_94
GdkTexture * gdk_texture_new_for_gl (GdkGLContext *context,
int id,
guint id,
int width,
int height,
GDestroyNotify destroy,

View File

@ -49,7 +49,7 @@ gpointer gdk_texture_get_render_data (GdkTexture
G_DECLARE_FINAL_TYPE (GdkGLTexture, gdk_gl_texture, GDK, GL_TEXTURE, GdkTexture)
GdkGLContext * gdk_gl_texture_get_context (GdkGLTexture *self);
int gdk_gl_texture_get_id (GdkGLTexture *self);
guint gdk_gl_texture_get_id (GdkGLTexture *self);
G_END_DECLS