| @@ -1,33 +1,42 @@ | | | @@ -1,33 +1,42 @@ |
1 | $NetBSD: patch-ad,v 1.1 2009/01/05 16:08:20 shattered Exp $ | | 1 | $NetBSD: patch-ad,v 1.2 2011/09/22 21:20:42 shattered Exp $ |
2 | | | 2 | |
3 | Proposed fix for "missing preview icons" problem, from | | 3 | Proposed fix for "missing preview icons" problem, from |
4 | http://sourceforge.net/tracker/index.php?func=detail&aid=1814712&group_id=203093&atid=984206 | | 4 | http://sourceforge.net/tracker/index.php?func=detail&aid=1814712&group_id=203093&atid=984206 |
5 | | | 5 | |
6 | --- src/main.c.orig 2007-09-09 00:36:21.000000000 +0000 | | 6 | --- src/main.c.orig 2007-09-09 00:36:21.000000000 +0000 |
7 | +++ src/main.c | | 7 | +++ src/main.c |
8 | @@ -200,7 +200,7 @@ int orient_state_flip[8] ={2,3,0,1,6,7 | | 8 | @@ -201,7 +201,7 @@ int orient_state_flip[8] ={2,3,0,1,6,7 |
9 | /* required prototypes */ | | 9 | /* required prototypes */ |
10 | void render_pixmap(int reset_pos); | | 10 | void render_pixmap(int reset_pos); |
11 | void cb_nextprev_tagged_image(int next,int view); | | 11 | void cb_nextprev_tagged_image(int next,int view); |
12 | -void idle_xvpic_load(int *entryp); | | 12 | -void idle_xvpic_load(int *entryp); |
13 | +gint idle_xvpic_load(int *entryp); | | 13 | +gint idle_xvpic_load(int *entryp); |
14 | gint pic_win_resized(GtkWidget *widget,GdkEventConfigure *event); | | 14 | gint pic_win_resized(GtkWidget *widget,GdkEventConfigure *event); |
15 | void cb_scaling_double(void); | | 15 | void cb_scaling_double(void); |
16 | void cb_xscaling_double(void); | | 16 | void cb_xscaling_double(void); |
17 | @@ -2624,7 +2624,7 @@ else | | 17 | @@ -2622,7 +2622,7 @@ return(pixmap); |
18 | } | | 18 | } |
19 | | | 19 | |
20 | | | 20 | |
21 | -void idle_xvpic_load(int *entryp) | | 21 | -void idle_xvpic_load(int *entryp) |
22 | +gint idle_xvpic_load(int *entryp) | | 22 | +gint idle_xvpic_load(int *entryp) |
23 | { | | 23 | { |
24 | static char buf[1024]; | | 24 | static char buf[1024]; |
25 | struct clist_data_tag *datptr; | | 25 | struct clist_data_tag *datptr; |
26 | @@ -2748,6 +2748,7 @@ for(f=0;f<IDLE_XVPIC_NUM_PER_CALL;f++) | | 26 | @@ -2638,7 +2638,7 @@ idle_xvpic_called=1; |
| | | 27 | |
| | | 28 | /* don't do it if it would be a bad time */ |
| | | 29 | if(idle_xvpic_blocked) |
| | | 30 | - return; |
| | | 31 | + return FALSE; |
| | | 32 | |
| | | 33 | /* freeze/thaw actually *cause* flickering for this, rather than |
| | | 34 | * preventing it (!), so I've not used those here. |
| | | 35 | @@ -2746,6 +2746,7 @@ for(f=0;f<IDLE_XVPIC_NUM_PER_CALL;f++) |
27 | *entryp=-1; | | 36 | *entryp=-1; |
28 | } | | 37 | } |
29 | } | | 38 | } |
30 | + return TRUE; | | 39 | + return TRUE; |
31 | } | | 40 | } |
32 | | | 41 | |
33 | | | 42 | |