Modified grids for SD990/IXUS980 IS - General Help and Assistance on using CHDK stable releases - CHDK Forum  

Modified grids for SD990/IXUS980 IS

  • 6 Replies
  • 2108 Views
Modified grids for SD990/IXUS980 IS
« on: 01 / September / 2010, 22:12:58 »
Advertisements

reyalp has had a fix for the osd-asp issue, so the standard grid files needn't be modified.

Hi, because of the 720x240 LCD size on SD990/IXUS980, the standard grids included in CHDK are displayed on the left half of LCD only.

I modified these .grd files to double all x-values in them. Download here http://bookr-mod.googlecode.com/files/GRIDS_CHDK_IXUS980IS.7z

here is the PERL script to modify any standard .grd file for SD990/IXUS980.
=======================================
#!/usr/bin/perl
while (<>){
    chomp;
    if ( $_ =~ /\@(line|rect|rectf|elps|elpsf)\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(.*)/ ) {
        $x2 = $2*2;
        $x4 = $4*2;
        if (($2>=90&&$2<180)||($2>=270&&$2<360)){
            $x2++;
        }
        if (($4>=90&&$4<180)||($4>=270&&$4<360)){
            $x4++;
        }
        print "\@$1 $x2,$3,$x4,$5";
    } else {
        print $_;
    }
    print "\n";
}
=======================================

« Last Edit: 03 / September / 2010, 05:32:06 by ppyyf »

*

Offline hwntw

  • ***
  • 158
Re: Modified grids for SD990/IXUS980 IS
« Reply #1 on: 02 / September / 2010, 05:26:51 »
Hello,
What is the usage of this script? Might it have a broader use as a converter for cameras where the grids are shown displaced to the left of the LCD, as on my Ixus95?
Ixus 300HS S100


Windows 10

Re: Modified grids for SD990/IXUS980 IS
« Reply #2 on: 02 / September / 2010, 22:27:56 »
Hello,
What is the usage of this script? Might it have a broader use as a converter for cameras where the grids are shown displaced to the left of the LCD, as on my Ixus95?

It just doubles(almost so) the X-pos or width values in a .grd file.

PS. if the stardard grids are shown only on the left half on your LCD, you can just use the modified .grd files for SD990/IXUS980.
« Last Edit: 02 / September / 2010, 22:30:18 by ppyyf »

*

Offline hwntw

  • ***
  • 158
Re: Modified grids for SD990/IXUS980 IS
« Reply #3 on: 13 / September / 2010, 12:12:41 »
Hello,
What is the Reyalp fix, can you reference it please?
Ixus 300HS S100


Windows 10


*

Offline reyalp

  • ******
  • 12373
Re: Modified grids for SD990/IXUS980 IS
« Reply #4 on: 13 / September / 2010, 12:47:07 »
Hello,
What is the Reyalp fix, can you reference it please?
It's in the auto build. Standard grids now work. See the SD990 thread for discussion http://chdk.setepontos.com/index.php/topic,2972.180.html
Don't forget what the H stands for.

*

Offline hwntw

  • ***
  • 158
Re: Modified grids for SD990/IXUS980 IS
« Reply #5 on: 13 / September / 2010, 13:45:35 »
Hello,
I want to fix the grids on my Ixus95, which are pushed to the left side of the screen.
Ixus 300HS S100


Windows 10

*

Offline reyalp

  • ******
  • 12373
Re: Modified grids for SD990/IXUS980 IS
« Reply #6 on: 13 / September / 2010, 15:04:43 »
Hello,
I want to fix the grids on my Ixus95, which are pushed to the left side of the screen.
I'll look into adding the same fixes to CHDK code for this port. For now, you must adjust the grid. You can do this with the perl script ppyyf if the screen is 720 pixels, or by hand editing the .grd file.
Don't forget what the H stands for.

 

Related Topics