Bläddra i källkod

* Cosmetic fix in test/font.c.

* Use UTF-8 output in test/text.c instead of ANSI.
tags/v0.99.beta14
Sam Hocevar sam 18 år sedan
förälder
incheckning
0cbd5fd983
2 ändrade filer med 4 tillägg och 4 borttagningar
  1. +2
    -2
      test/font.c
  2. +2
    -2
      test/text.c

+ 2
- 2
test/font.c Visa fil

@@ -80,8 +80,8 @@ int main(int argc, char *argv[])
if(__BYTE_ORDER == __BIG_ENDIAN)
#else
/* This is compile-time optimised with at least -O1 or -Os */
uint32_t const rmask = 0x12345678;
if(*(uint8_t const *)&rmask == 0x12)
uint32_t const tmp = 0x12345678;
if(*(uint8_t const *)&tmp == 0x12)
#endif
d = cucul_create_dither(32, w, h, 4 * w,
0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);


+ 2
- 2
test/text.c Visa fil

@@ -40,14 +40,14 @@ int main(void)
cv = cucul_import_canvas(buffer, "text");
cucul_free_buffer(buffer);

buffer = cucul_export_canvas(cv, "ansi");
buffer = cucul_export_canvas(cv, "utf8");
fwrite(cucul_get_buffer_data(buffer),
cucul_get_buffer_size(buffer), 1, stdout);
cucul_free_buffer(buffer);

cucul_rotate(cv);

buffer = cucul_export_canvas(cv, "ansi");
buffer = cucul_export_canvas(cv, "utf8");
fwrite(cucul_get_buffer_data(buffer),
cucul_get_buffer_size(buffer), 1, stdout);
cucul_free_buffer(buffer);


Laddar…
Avbryt
Spara