Browse Source

___

',_`""\        .---,    
                                           \   :-""``/`    |    
          Ahaha mais vieux porc !!          `;'     //`\   /    
                                            /   __     |   ('.  
                                           |_ ./O)\     \  `) \ 
                                          _/-.    `      `"`  |`
                                      .-=; `                  / 
                                     /o o \   ,_,           .   
                                     L._._;_.-'           .     
                                       `'-.`             '      
                                           `.         '         
                                             '-._. -'
tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
08627c3231
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      cucul/export_ps.c

+ 2
- 3
cucul/export_ps.c View File

@@ -30,7 +30,6 @@
#include "cucul_internals.h" #include "cucul_internals.h"


static char const *ps_header = static char const *ps_header =
//"%!PS-Adobe-2.0\n"
"%!\n" "%!\n"
"%% libcaca PDF export\n" "%% libcaca PDF export\n"
"%%LanguageLevel: 2\n" "%%LanguageLevel: 2\n"
@@ -102,8 +101,8 @@ void _cucul_get_ps(cucul_t *qq, struct cucul_buffer *ex)


for(y = qq->height; y--; ) for(y = qq->height; y--; )
{ {
uint8_t *lineattr = qq->attr + y * qq->width;
uint32_t *linechar = qq->chars + y * qq->width;
uint8_t *lineattr = qq->attr + (qq->height - y - 1) * qq->width;
uint32_t *linechar = qq->chars + (qq->height - y - 1) * qq->width;


for(x = 0; x < qq->width; x++) for(x = 0; x < qq->width; x++)
{ {


Loading…
Cancel
Save