Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
82115072
Commit
82115072
authored
Aug 31, 2014
by
Projects
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gfx: Fix warnings.
parent
c646b324
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
bitmaps.h
sw/bitmaps/bitmaps.h
+1
-1
bmp2rle.py
sw/bitmaps/bmp2rle.py
+1
-1
gfx.c
sw/common/gfx/gfx.c
+1
-1
ui.c
sw/common/gfx/ui.c
+3
-3
No files found.
sw/bitmaps/bitmaps.h
View file @
82115072
...
...
@@ -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
;
...
...
sw/bitmaps/bmp2rle.py
View file @
82115072
...
...
@@ -73,7 +73,7 @@ struct rle_bitmap
{
uint8_t w;
uint8_t h;
uint8_t *data;
const
uint8_t *data;
};
"""
)
...
...
sw/common/gfx/gfx.c
View file @
82115072
...
...
@@ -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
;
...
...
sw/common/gfx/ui.c
View file @
82115072
/*
* 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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment