fix indentation a bit

This commit is contained in:
radius 2016-02-14 15:45:19 -05:00
parent 172cdc1f49
commit 0cbdd4f3a6
1 changed files with 91 additions and 82 deletions

View File

@ -408,8 +408,10 @@ static void device_draw(struct device *dev, struct zr_context *ctx, int width, i
glUnmapBuffer(GL_ELEMENT_ARRAY_BUFFER);
/* iterate over and execute each draw command */
zr_draw_foreach(cmd, ctx, &dev->cmds) {
if (!cmd->elem_count) continue;
zr_draw_foreach(cmd, ctx, &dev->cmds)
{
if (!cmd->elem_count)
continue;
glBindTexture(GL_TEXTURE_2D, (GLuint)cmd->texture.id);
glScissor((GLint)cmd->clip_rect.x,
height - (GLint)(cmd->clip_rect.y + cmd->clip_rect.h),
@ -430,9 +432,16 @@ static void device_draw(struct device *dev, struct zr_context *ctx, int width, i
}
static void* mem_alloc(zr_handle unused, size_t size)
{UNUSED(unused); return calloc(1, size);}
{
UNUSED(unused);
return calloc(1, size);
}
static void mem_free(zr_handle unused, void *ptr)
{UNUSED(unused); free(ptr);}
{
UNUSED(unused);
free(ptr);
}
struct device device;
struct zr_font font;