Skip to content

Commit

Permalink
IXUS870IS/SD880IS viewport live buffer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
msl committed May 6, 2011
1 parent 742e313 commit 291b56d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions platform/ixus870_sd880/sub/100e/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ long hook_raw_size()

void *vid_get_viewport_live_fb()
{
void **fb=(void **)0x227C;
unsigned char buff = *((unsigned char*)0x20DC);
void **fb=(void **)0x725C;
unsigned char buff = *((unsigned char*)0x70D8);
if (buff == 0) buff = 2; else buff--;
return fb[buff];
}
Expand Down
4 changes: 2 additions & 2 deletions platform/ixus870_sd880/sub/101a/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ long hook_raw_size()

void *vid_get_viewport_live_fb()
{
void **fb=(void **)0x227C;
unsigned char buff = *((unsigned char*)0x20DC);
void **fb=(void **)0x725C; // 0xff8c2e9c
unsigned char buff = *((unsigned char*)0x70D8); // 0xff8c2e24
if (buff == 0) buff = 2; else buff--;
return fb[buff];
}
Expand Down
4 changes: 2 additions & 2 deletions platform/ixus870_sd880/sub/102b/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ long hook_raw_size()

void *vid_get_viewport_live_fb()
{
void **fb=(void **)0x227C;
unsigned char buff = *((unsigned char*)0x20DC);
void **fb=(void **)0x725C;
unsigned char buff = *((unsigned char*)0x70D8);
if (buff == 0) buff = 2; else buff--;
return fb[buff];
}
Expand Down

0 comments on commit 291b56d

Please sign in to comment.