Changeset 1729


Ignore:
Timestamp:
03/14/12 04:35:35 (14 months ago)
Author:
reyalp
Message:

live view bitmap + palette functions for g10 103b, 104a, plus viewport height correction

Location:
branches/reyalp-ptp-live/platform/g10
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/reyalp-ptp-live/platform/g10/lib.c

    r1728 r1729  
    9393int vid_get_palette_size() { return 256*4; } 
    9494 
     95// TODO actual value probably varies in some cases 
     96int vid_get_viewport_height_proper() { return 480; } 
     97int vid_get_viewport_max_height() { return 480; } 
  • branches/reyalp-ptp-live/platform/g10/sub/103b/lib.c

    r1329 r1729  
    7474    return fb[buff]; 
    7575} 
     76 
     77// ptp 
     78void *vid_get_bitmap_active_palette() { 
     79    return (void *)*(unsigned int*)(0x8034+0x28);  // sub_FF8F3270, via sub_FF9D5264 two refs to "Palette Class." 
     80} 
     81 
     82void *vid_get_bitmap_active_buffer() 
     83{ 
     84    return (void*)(*(int*)(0x8034+0x14)); // sub_FF8F331C via "Add: %p Width : %ld Hight : %ld",  
     85} 
     86 
  • branches/reyalp-ptp-live/platform/g10/sub/104a/lib.c

    r1329 r1729  
    7474    return fb[buff]; 
    7575} 
     76 
     77// ptp 
     78void *vid_get_bitmap_active_palette() { 
     79    return (void *)*(unsigned int*)(0x8034+0x28);  // sub_FF8F3270, via sub_FF9D5264 two refs to "Palette Class." 
     80} 
     81 
     82void *vid_get_bitmap_active_buffer() 
     83{ 
     84    return (void*)(*(int*)(0x8034+0x14)); // sub_FF8F331C via "Add: %p Width : %ld Hight : %ld",  
     85} 
     86 
Note: See TracChangeset for help on using the changeset viewer.