fix compil

This commit is contained in:
Jacek Jendrzej
2017-06-15 13:20:22 +02:00
parent 497e31c3fd
commit d1569e6114
6 changed files with 6 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ hw_caps_t *get_hwcaps(void)
caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.has_HDMI = 1; caps.has_HDMI = 1;
caps.display_xres = 8; caps.display_xres = 8;
caps.can_set_display_brightness = 0;
strcpy(caps.boxvendor, "AZBox"); strcpy(caps.boxvendor, "AZBox");
const char *tmp; const char *tmp;
char buf[64]; char buf[64];

View File

@@ -28,6 +28,7 @@ hw_caps_t *get_hwcaps(void)
caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.has_HDMI = 1; caps.has_HDMI = 1;
caps.display_xres = 8; caps.display_xres = 8;
caps.can_set_display_brightness = 0;
strcpy(caps.boxvendor, "Generic"); strcpy(caps.boxvendor, "Generic");
strcpy(caps.boxname, "PC"); strcpy(caps.boxname, "PC");
if (! uname(&u)) if (! uname(&u))

View File

@@ -36,6 +36,7 @@ typedef struct hw_caps
display_type_t display_type; display_type_t display_type;
int display_xres; /* x resolution or chars per line */ int display_xres; /* x resolution or chars per line */
int display_yres; int display_yres;
int can_set_display_brightness;
char boxvendor[64]; char boxvendor[64];
char boxname[64]; char boxname[64];
char boxarch[64]; char boxarch[64];

View File

@@ -37,6 +37,7 @@ hw_caps_t *get_hwcaps(void)
caps.has_HDMI = 1; caps.has_HDMI = 1;
caps.has_SCART = 1; caps.has_SCART = 1;
caps.display_xres = 4; caps.display_xres = 4;
caps.can_set_display_brightness = 0;
caps.force_tuner_2G = 1; /* I have patched the drivers to fix this, but not everyone has */ caps.force_tuner_2G = 1; /* I have patched the drivers to fix this, but not everyone has */
strcpy(caps.boxvendor, "SPARK"); strcpy(caps.boxvendor, "SPARK");
const char *tmp; const char *tmp;

View File

@@ -23,6 +23,7 @@ static hw_caps_t caps = {
.display_type = HW_DISPLAY_GFX, .display_type = HW_DISPLAY_GFX,
.display_xres = 128, .display_xres = 128,
.display_yres = 64, .display_yres = 64,
.can_set_display_brightness = 0,
.boxvendor = "Armas", .boxvendor = "Armas",
.boxname = "TripleDragon", .boxname = "TripleDragon",
.boxarch = "ppc405" .boxarch = "ppc405"

View File

@@ -29,6 +29,7 @@ hw_caps_t *get_hwcaps(void)
caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.has_HDMI = 1; caps.has_HDMI = 1;
caps.display_xres = 8; caps.display_xres = 8;
caps.can_set_display_brightness = 0;
strcpy(caps.boxvendor, "Raspberry"); strcpy(caps.boxvendor, "Raspberry");
strcpy(caps.boxname, "Pi"); strcpy(caps.boxname, "Pi");
if (! uname(&u)) if (! uname(&u))