mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
- slide: use proc_put_hex()
This commit is contained in:
@@ -60,23 +60,21 @@ COSDSlider::~COSDSlider()
|
|||||||
void COSDSlider::setValue(int val)
|
void COSDSlider::setValue(int val)
|
||||||
{
|
{
|
||||||
//printf("setvalue: %d\n",val);
|
//printf("setvalue: %d\n",val);
|
||||||
char buffer[10];
|
|
||||||
if (slideMode == MID2SIDE)
|
if (slideMode == MID2SIDE)
|
||||||
{
|
{
|
||||||
int w = MAX_WIDTH - val;
|
int w = MAX_WIDTH - val;
|
||||||
|
proc_put_hex("/proc/stb/fb/dst_width", w);
|
||||||
|
|
||||||
int l = (MAX_WIDTH - w) / 2;
|
int l = (MAX_WIDTH - w) / 2;
|
||||||
sprintf(buffer, "%x\n", w);
|
proc_put_hex("/proc/stb/fb/dst_left", l);
|
||||||
proc_put("/proc/stb/fb/dst_width", buffer, strlen(buffer));
|
|
||||||
sprintf(buffer, "%x\n", l);
|
|
||||||
proc_put("/proc/stb/fb/dst_left", buffer, strlen(buffer));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sprintf(buffer, "%x\n", val);
|
proc_put_hex("/proc/stb/fb/dst_top", val);
|
||||||
proc_put("/proc/stb/fb/dst_top", buffer, strlen(buffer));
|
|
||||||
}
|
}
|
||||||
sprintf(buffer, "%x\n", 1);
|
|
||||||
proc_put("/proc/stb/fb/dst_apply", buffer, strlen(buffer));
|
proc_put_hex("/proc/stb/fb/dst_apply", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void COSDSlider::StartSlideIn()
|
void COSDSlider::StartSlideIn()
|
||||||
|
Reference in New Issue
Block a user