File tree Expand file tree Collapse file tree 2 files changed +0
-28
lines changed Expand file tree Collapse file tree 2 files changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -10,33 +10,6 @@ struct gfx_ctx {
10
10
int raw ;
11
11
};
12
12
13
- struct gfx_ctx *
14
- gc_init (int width , int height , void * fbaddr )
15
- {
16
- struct gfx_ctx * gc ;
17
- struct gfx_ctx_image * gc_image ;
18
-
19
- gc = calloc (1 , sizeof (struct gfx_ctx ));
20
- assert (gc != NULL );
21
-
22
- gc_image = calloc (1 , sizeof (struct gfx_ctx_image ));
23
- assert (gc_image != NULL );
24
-
25
- gc_image -> width = width ;
26
- gc_image -> height = height ;
27
- if (fbaddr ) {
28
- gc_image -> data = fbaddr ;
29
- gc -> raw = 1 ;
30
- } else {
31
- gc_image -> data = calloc (width * height , sizeof (uint32_t ));
32
- gc -> raw = 0 ;
33
- }
34
-
35
- gc -> gc_image = gc_image ;
36
-
37
- return gc ;
38
- }
39
-
40
13
struct gfx_ctx_image *
41
14
gc_get_image (struct gfx_ctx * gc )
42
15
{
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ struct gfx_ctx_image {
40
40
uint32_t * data ;
41
41
};
42
42
43
- struct gfx_ctx * gc_init (int width , int height , void * fbaddr );
44
43
struct gfx_ctx_image * gc_get_image (struct gfx_ctx * gc );
45
44
46
45
#endif /* _GC_H_ */
You can’t perform that action at this time.
0 commit comments