Commit 82115072 authored by Projects's avatar Projects

gfx: Fix warnings.

parent c646b324
......@@ -7,7 +7,7 @@ struct rle_bitmap
{
uint8_t w;
uint8_t h;
uint8_t *data;
const uint8_t *data;
};
extern const struct rle_bitmap example_icon;
......
......@@ -73,7 +73,7 @@ struct rle_bitmap
{
uint8_t w;
uint8_t h;
uint8_t *data;
const uint8_t *data;
};
""")
......
......@@ -237,7 +237,7 @@ void gfx_round_box(struct surface *surf, int x0, int y0, int x1, int y1,
void gfx_draw_bitmap(struct surface *surf, int x0, int y0, const struct rle_bitmap *b)
{
int x = 0, y = 0;
uint8_t *d = b->data;
const uint8_t *d = b->data;
while(y != b->h)
{
int pix = (*d) & 0x80 ? 1 : 0;
......
/*
* Copyright (C) 2014 Julian Lewis
* @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
* @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
......@@ -65,11 +65,11 @@ void ui_add_widget(struct ui_widget *w) {
}
if(!(w->flags & WF_DOUBLE_BUFFER)) {
gfx_init_surface(&w->dc, &screen, w->pos.x0, w->pos.y0,
gfx_init_surface(&w->dc, &screen, w->pos.x0, w->pos.y0,
w->pos.x1 - w->pos.x0 + 1, w->pos.y1 - w->pos.y0 + 1);
}
else {
DBG("NonImpl\n");
// DBG("NonImpl\n");
}
w->flags |= WF_DIRTY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment