On Mon, Nov 14, 2011 at 12:49:15PM +0000, Luca Sale wrote: > I recently got a new Torch 9860 and tried to get a screenshot but the > result was a not so pretty picture. > Have you guys tested "bjavaloader screenshot" with any of the new devices?
Hi Luca, I don't have an OS7 device, so I'm not able to test Barry against it. But I've included a patch below which changed bjavaloader screenshot into a raw data capture. If you could run it and send the resulting data file, I may be able to add support to Barry... it seems like it is an image format issue. Could you also include the following data captures: btool -vl bjavaloader deviceinfo Thanks! - Chris diff --git a/tools/bjavaloader.cc b/tools/bjavaloader.cc index 9e927ac..5dee60f 100644 --- a/tools/bjavaloader.cc +++ b/tools/bjavaloader.cc @@ -186,8 +186,8 @@ void GetScreenshot(Barry::Mode::JavaLoader *javaloader, const char *filename) // Convert to BMP format - Data bitmap(-1, GetTotalBitmapSize(info)); - ScreenshotToBitmap(info, image, bitmap); +// Data bitmap(-1, GetTotalBitmapSize(info)); +// ScreenshotToBitmap(info, image, bitmap); // Write BMP file FILE *fp = fopen(filename, "wb"); @@ -196,7 +196,8 @@ void GetScreenshot(Barry::Mode::JavaLoader *javaloader, const char *filename) } AutoClose ac(fp); - fwrite(bitmap.GetData(), bitmap.GetSize(), 1, fp); + fwrite(&info, sizeof(info), 1, fp); + fwrite(image.GetData(), image.GetSize(), 1, fp); } void SaveModule(Barry::Mode::JavaLoader *javaloader, const char *filename) ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Barry-devel mailing list Barry-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/barry-devel