root/platform/g9/sub/100i/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 
  30 int review_fullscreen_mode(){
  31  char r;
  32  get_parameter_data(53, &r, 1);
  33  return  r==0;
  34 }
  35 //from g7
  36 

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