Skip to content

Commit 6106d8b

Browse files
author
Xiangfu Liu
committedMar 1, 2012
fixed issue #35 take the currect settings to full screen
1 parent 85d0626 commit 6106d8b

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed
 

‎src/gui/videoin.c

+10-9
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ enum {
5252
CONTROL_HUE
5353
};
5454

55+
static void set_config(void)
56+
{
57+
config_write_int("vin_format", format);
58+
config_write_int("vin_brightness", brightness);
59+
config_write_int("vin_contrast", contrast);
60+
config_write_int("vin_hue", hue);
61+
cp_notify_changed();
62+
}
63+
5564
static void set_format(int f)
5665
{
5766
ioctl(video_fd, VIDEO_SET_FORMAT, f);
@@ -109,6 +118,7 @@ static void slide_callback(mtk_event *e, void *arg)
109118

110119
val = mtk_req_i(appid, guiname);
111120
set_value(control, val);
121+
set_config();
112122
}
113123

114124
static void format_callback(mtk_event *e, void *arg)
@@ -129,15 +139,6 @@ void load_videoin_config(void)
129139
mtk_cmdf(appid, "s_hue.set(-value %d)", hue);
130140
}
131141

132-
static void set_config(void)
133-
{
134-
config_write_int("vin_format", format);
135-
config_write_int("vin_brightness", brightness);
136-
config_write_int("vin_contrast", contrast);
137-
config_write_int("vin_hue", hue);
138-
cp_notify_changed();
139-
}
140-
141142
static int w_open;
142143

143144
#define UPDATE_PERIOD 10

0 commit comments

Comments
 (0)
Please sign in to comment.