root/platform/g9/sub/100d/lib.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. hook_raw_image_addr
  2. vid_get_viewport_fb_d
  3. JogDial_CW
  4. JogDial_CCW
  5. review_fullscreen_mode

   1 #include "platform.h"
   2 #include "lolevel.h"
   3 
   4 
   5 char *hook_raw_image_addr()
   6 {
   7  return (char*) (*(int*)(0x5854+0x18) ? 0x11F8F740 : 0x108297C0);
   8 }
   9 
  10 void *vid_get_viewport_fb_d()
  11 {
  12     return (void*)(*(int*)0x55A0); //OK // 0x5558 + 0x48
  13 }
  14 
  15 void JogDial_CW(void){
  16   (*(short*)(0x263C+2))--;
  17 //  *(int*)(0x263C+0x18)=0x0;
  18   *(int*)(0x263C+0x14)=0x32;
  19   _GiveSemaphore(*(int*)(0x263C+0x0C));
  20 }
  21 
  22 void JogDial_CCW(void){
  23   (*(short*)(0x263C+2))++;
  24 //  *(int*)(0x263C+0x18)=0x0;
  25   *(int*)(0x263C+0x14)=0x32;
  26   _GiveSemaphore(*(int*)(0x263C+0x0C));
  27 }
  28 
  29 //from sx100is
  30 //void JogDial_CW(void){
  31 //  (*(short*)(0x2590+2))--;
  32 //  *(int*)(0x2590+0x18)=0x32;
  33 //  _GiveSemaphore(*(int*)(0x2590+0x10));
  34 //}
  35 //
  36 //void JogDial_CCW(void){
  37 //  (*(short*)(0x2590+2))++;
  38 //  *(int*)(0x2590+0x18)=0x32;
  39 //  _GiveSemaphore(*(int*)(0x2590+0x10));
  40 //}
  41 //from sx100is
  42 
  43 int review_fullscreen_mode(){
  44  char r;
  45  get_parameter_data(53, &r, 1);
  46  return  r==0;
  47 }
  48 //from g7
  49 

/* [<][>][^][v][top][bottom][index][help] */