/contrib/media/updf_newlib/include/jconfig.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_arith.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_symbol_dict.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/j2k.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_generic.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jp2.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jmorecfg.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_hufftab.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jpt.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_priv.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_metadata.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_arith_int.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_image.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_huffman.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_text.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/openjpeg.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_mmr.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jbig2_arith_iaid.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/j2k_lib.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/include/jpeglib.h |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/contrib/media/updf_newlib/apps/Makefile |
---|
6,7 → 6,7 |
CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 |
INCLUDES = -I ../SYSCALL/include -I $(SDK_DIR)/sources/newlib/libc/include -I $(SDK_DIR)/sources/freetype/include -I $(SDK_DIR)/sources/zlib -I ../include -I ../fitz -I ../pdf |
INCLUDES = -I ../SYSCALL/include -I $(SDK_DIR)/sources/newlib/libc/include -I $(SDK_DIR)/sources/freetype/include -I $(SDK_DIR)/sources/zlib -I ../fitz -I ../pdf |
LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib -L ../lib |
APPS_SRC := $(notdir $(wildcard *.c)) |
/contrib/media/updf_newlib/apps/kos_main.c |
---|
110,7 → 110,7 |
void winclose(pdfapp_t *app) |
{ |
pdfapp_close(&gapp); |
__menuet__sys_exit(); |
exit(0); |
} |
void RunOpenApp(char name[]) |
371,7 → 371,7 |
if (argc == 1) { |
kol_board_puts("uPDF: no param set, showing OpenDialog"); |
RunOpenApp(argv[0]); |
__menuet__sys_exit(); |
exit(0); |
} |
kol_board_puts(argv[1]); |
400,7 → 400,6 |
for(;;) |
{ |
switch(__menuet__wait_for_event()) |
{ |
case evReDraw: |
440,7 → 439,7 |
case evButton: |
butt = __menuet__get_button_id(); |
if(butt==1) __menuet__sys_exit(); |
if(butt==1) exit(0); |
if(butt==10) RunOpenApp(argv[0]); |
if(butt==11) PageZoomOut(); //magnify - |
if(butt==12) PageZoomIn(); //magnify + |
/contrib/media/updf_newlib/apps/pdfapp.c |
---|
1,6 → 1,7 |
#include "fitz.h" |
#include "mupdf.h" |
#include "pdfapp.h" |
#include "kolibri.h" |
#include <ctype.h> /* for tolower() */ |
109,12 → 110,12 |
/* |
* Open PDF and load xref table |
*/ |
__menuet__debug_out("FZ OPEN\n"); |
kol_board_puts("FZ OPEN\n"); |
//file = fz_open_fd(fd); |
__menuet__debug_out("FZ ready\n"); |
kol_board_puts("FZ ready\n"); |
error = pdf_open_xref(&app->xref, filename, NULL); |
if (error){ |
__menuet__debug_out("FZ can't open\n"); |
kol_board_puts("FZ can't open\n"); |
pdfapp_error(app, fz_rethrow(error, "cannot open document '%s'", filename));} |
fz_close(file); |
160,16 → 161,16 |
/* |
* Start at first page |
*/ |
__menuet__debug_out("Start at first page\n"); |
kol_board_puts("Start at first page\n"); |
error = pdf_load_page_tree(app->xref); |
if (error) { |
__menuet__debug_out("Can't load tree\n"); |
kol_board_puts("Can't load tree\n"); |
pdfapp_error(app, fz_rethrow(error, "cannot load page tree"));} |
__menuet__debug_out("Page counter\n"); |
kol_board_puts("Page counter\n"); |
app->pagecount = pdf_count_pages(app->xref); |
__menuet__debug_out("All is set!\n"); |
kol_board_puts("All is set!\n"); |
} |
void pdfapp_open(pdfapp_t *app, char *filename, int fd, int reload) |
375,7 → 376,7 |
if (app->shrinkwrap) |
{ |
__menuet__debug_out ("SHRINK\n"); |
kol_board_puts ("SHRINK\n"); |
int w = app->image->w; |
int h = app->image->h; |
if (app->winw == w) |
/contrib/media/updf_newlib/draw/Makefile |
---|
2,12 → 2,10 |
LD = kos32-ld |
SDK_DIR = $(abspath ../../../sdk) |
LDFLAGS = -call_shared -nostdlib -T $(SDK_DIR)/sources/newlib/app-dynamic.lds --image-base 0 |
CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 |
INCLUDES = -I $(SDK_DIR)/sources/newlib/libc/include -I ../fitz |
LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib |
DRAW_SRC := $(notdir $(wildcard *.c)) |
OBJECTS = $(patsubst %.c, %.o, $(DRAW_SRC)) |
/contrib/media/updf_newlib/fitz/Makefile |
---|
5,7 → 5,7 |
CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 |
INCLUDES = -I $(SDK_DIR)/sources/newlib/libc/include -I $(SDK_DIR)/sources/freetype/include -I $(SDK_DIR)/sources/zlib -I ../libopenjpeg -I ../include |
INCLUDES = -I $(SDK_DIR)/sources/newlib/libc/include -I $(SDK_DIR)/sources/freetype/include -I $(SDK_DIR)/sources/libjpeg -I $(SDK_DIR)/sources/zlib -I ../libopenjpeg -I ../libjbig2dec |
FITZ_SRC := $(notdir $(wildcard *.c)) |
OBJECTS = $(patsubst %.c, %.o, $(FITZ_SRC)) |
/contrib/media/updf_newlib/pdf/Makefile |
---|
2,12 → 2,10 |
LD = kos32-ld |
SDK_DIR = $(abspath ../../../sdk) |
LDFLAGS = -call_shared -nostdlib -T $(SDK_DIR)/sources/newlib/app-dynamic.lds --image-base 0 |
CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 |
INCLUDES = -I $(SDK_DIR)/sources/newlib/libc/include -I ../fitz -I $(SDK_DIR)/sources/freetype/include |
LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib |
PDF_SRC := $(notdir $(wildcard *.c)) |
OBJECTS = $(patsubst %.c, %.o, $(PDF_SRC)) |