nwlink 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eadk/eadk.h CHANGED
@@ -2,6 +2,7 @@
2
2
  #define EADK_H
3
3
 
4
4
  #include <stdbool.h>
5
+ #include <stddef.h>
5
6
  #include <stdint.h>
6
7
 
7
8
  // Types and constants
@@ -28,7 +29,9 @@ typedef struct {
28
29
 
29
30
  // Keyboard and Events
30
31
 
31
- static const eadk_rect_t eadk_screen_rect = {0, 0, 320, 240};
32
+ #define EADK_SCREEN_WIDTH 320
33
+ #define EADK_SCREEN_HEIGTH 240
34
+ static const eadk_rect_t eadk_screen_rect = {0, 0, EADK_SCREEN_WIDTH, EADK_SCREEN_HEIGTH};
32
35
 
33
36
  typedef uint64_t eadk_keyboard_state_t;
34
37
  typedef enum {
@@ -240,7 +243,10 @@ void eadk_timing_usleep(uint32_t us);
240
243
  void eadk_timing_msleep(uint32_t ms);
241
244
  uint64_t eadk_timing_millis();
242
245
 
243
- extern const unsigned char eadk_external_data[];
246
+ // External data
247
+
248
+ extern const char * eadk_external_data;
249
+ extern size_t eadk_external_data_size;
244
250
 
245
251
  // Misc
246
252