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

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