summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-09-22 17:22:39 +0100
committerTom Hacohen <tom@stosb.com>2014-09-22 17:22:39 +0100
commit061216a4633b02b6300e07c41db9bf6847369a1e (patch)
tree65e1d0eb60920e8449454d6d355168b6dc3dd4c7
parent77416d97772773d0a81f71118d96c22a2342679d (diff)
Set load size according to window size when changing page (hack).
-rw-r--r--src/bin/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index f2671cf..87adec2 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -28,8 +28,12 @@ static int main_page = 0;
28static void 28static void
29_pdf_file_set(const char *filename, int page) 29_pdf_file_set(const char *filename, int page)
30{ 30{
31 int w = 0, h = 0;
31 char buf[20]; 32 char buf[20];
32 33
34 eo_do(main_win, evas_obj_size_get(&w, &h));
35 efl_image_load_size_set(w, h);
36
33 snprintf(buf, sizeof(buf), "%d", page); 37 snprintf(buf, sizeof(buf), "%d", page);
34 efl_file_set(filename, buf); 38 efl_file_set(filename, buf);
35 DBG("Set page: %s:%d", filename, page); 39 DBG("Set page: %s:%d", filename, page);