File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ void blend_tile(const pp_tile_t *t) {
25
25
}
26
26
27
27
// draw border of tile for debugging
28
- colour box = create_colour (160 , 180 , 200 , 150 );
28
+ /* colour box = create_colour(160, 180, 200, 150);
29
29
for(int32_t x = t->x; x < t->x + t->w; x++) {
30
30
buffer[t->y][x] = blend(buffer[t->y][x], box);
31
31
buffer[t->y + t->h][x] = blend(buffer[t->y + t->h][x], box);
32
32
}
33
33
for(int32_t y = t->y; y < t->y + t->h; y++) {
34
34
buffer[y][t->x] = blend(buffer[y][t->x], box);
35
35
buffer[y][t->x + t->w] = blend(buffer[y][t->x + t->w], box);
36
- }
36
+ }*/
37
37
}
38
38
39
39
Original file line number Diff line number Diff line change 36
36
#include <math.h>
37
37
#include <stdbool.h>
38
38
39
- #ifndef PP_MALLOC
40
- #define PP_MALLOC (size ) malloc(size)
41
- #define PP_REALLOC (p , size ) realloc(p, size)
42
- #define PP_FREE (p ) free(p)
43
- #endif
44
-
45
39
#ifndef PP_COORD_TYPE
46
40
#define PP_COORD_TYPE float
47
41
#endif
63
57
#include "hardware/interp.h"
64
58
#endif
65
59
66
- #ifdef PP_DEBUG
67
- #define debug (...) printf(__VA_ARGS__)
68
- #else
69
- #define debug (...)
70
- #endif
71
-
72
60
#ifdef __cplusplus
73
61
extern "C" {
74
62
#endif
@@ -145,6 +133,18 @@ pp_rect_t pp_polygon_bounds(pp_poly_t *p);
145
133
146
134
#ifdef PP_IMPLEMENTATION
147
135
136
+ #ifndef PP_MALLOC
137
+ #define PP_MALLOC (size ) malloc(size)
138
+ #define PP_REALLOC (p , size ) realloc(p, size)
139
+ #define PP_FREE (p ) free(p)
140
+ #endif
141
+
142
+ #ifdef PP_DEBUG
143
+ #define debug (...) printf(__VA_ARGS__)
144
+ #else
145
+ #define debug (...)
146
+ #endif
147
+
148
148
pp_rect_t _pp_clip = (pp_rect_t ){- INT_MAX , - INT_MAX , INT_MAX , INT_MAX };
149
149
pp_tile_callback_t _pp_tile_callback = NULL ;
150
150
pp_antialias_t _pp_antialias = PP_AA_X4 ;
@@ -437,7 +437,7 @@ pp_rect_t render_nodes(pp_rect_t *tb) {
437
437
438
438
unsigned char * row_data = & tile_buffer [(y >> _pp_antialias ) * PP_TILE_BUFFER_SIZE ];
439
439
440
- for (int i = 0 ; i < node_counts [y ]; i += 2 ) {
440
+ for (uint32_t i = 0 ; i < node_counts [y ]; i += 2 ) {
441
441
int sx = nodes [y ][i + 0 ];
442
442
int ex = nodes [y ][i + 1 ];
443
443
You can’t perform that action at this time.
0 commit comments