fayizkc / androidscreencast

Automatically exported from code.google.com/p/androidscreencast
0 stars 0 forks source link

Patch for /trunk/AndroidScreencast/src/net/srcz/android/screencast/api/injector/ScreenCaptureThread.java #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For ZTE Blade where the screen is upside down.
So I flip the screen.

Original issue reported on code.google.com by buzpesa@gmail.com on 27 Mar 2011 at 12:44

Attachments:

GoogleCodeExporter commented 9 years ago
I have ZTE Blade. Please, how can I apply the patch?

Original comment by pbogi...@gmail.com on 11 Aug 2011 at 7:54

GoogleCodeExporter commented 9 years ago
Hi if you download the soure and my file you can see what is the difference in 
the 
\AndroidScreencast\src\net\srcz\android\screencast\api\injector\ScreenCaptureThr
ead.java  

Simply replace:
    int index = 0;
    int indexInc = rawImage.bpp >> 3;
    for (int y = 0; y < rawImage.height; y++) {
        for (int x = 0; x < rawImage.width; x++, index += indexInc) {
            int value = rawImage.getARGB(index);
            if (landscape)
                image.setRGB(y, rawImage.width - x - 1, value);
            else
                image.setRGB(x, y, value);
        }
    }
with this:
    int index = 0;
    int indexInc = rawImage.bpp >> 3;
    for (int y = rawImage.height-1; y > 1; y--) {
        for (int x = rawImage.width-1; x > -1; x--, index += indexInc) {
            int value = rawImage.getARGB(index);
            if (landscape)
                image.setRGB(y, rawImage.width - x - 1, value);
            else
                image.setRGB(x, y, value);
        }
    }

But I attach the full modify soure and an exported jar it is runable. 
(If it don't find the device run the Android ddms, to set up the connection)

Original comment by buzpesa@gmail.com on 11 Aug 2011 at 9:09

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, I simply started the jar file and it works!! :) Thanks!
It's very useful to maintain the device.
I very appreciate you helped me so quickly. I am just activating my PayPal 
account, I will donate you for sure.

Original comment by pbogi...@gmail.com on 12 Aug 2011 at 6:58

Attachments:

GoogleCodeExporter commented 9 years ago
great project! i am using it with my blade right now but i was lost in the 
patching and the jar file. do you have a step by step list to correct the 
inverted display on the monitor? thanks, appreciate your help!

Original comment by naj.ma...@gmail.com on 2 Oct 2011 at 12:46

GoogleCodeExporter commented 9 years ago
Hi if you do not want to use the patch. You have two choice:
1 You have the source in svn:
Simply replace the text what I wrote in the 2. comment, Compile the project and 
run it.
2 Don't have the source:
The jar file (androidscreencast_zteblade.jar) is compiled project download it 
and double click on it (if you have java it will run).

Original comment by buzpesa@gmail.com on 2 Oct 2011 at 3:54

GoogleCodeExporter commented 9 years ago
This also happens for ZTE Blade, support for flipping (middle mouse button?) 
would be nice.

Original comment by had...@digitech.cz on 18 Jan 2012 at 7:02

GoogleCodeExporter commented 9 years ago
I suggest the attached patch that cycles through all possible orientations with 
the right mouse button (0° -> 90° -> 180° -> 270° -> 0°...)

Works at least for my ZTE Blade

Original comment by tnfens...@gmail.com on 23 Jan 2012 at 4:04

Attachments:

GoogleCodeExporter commented 9 years ago
Dell streak 5 has the same problem; this patch solves it

Original comment by a.wightw...@gmail.com on 4 Apr 2012 at 12:19

GoogleCodeExporter commented 9 years ago
I had the same problem with my ZTE Skate, but this patch worked. Thanks! :-)

Original comment by suprimed...@gmail.com on 14 Jun 2012 at 2:22