Close
Advertise Here
Results 1 to 5 of 5
  1. #1
    OUYA Developer zeha's Avatar
    Join Date
    Jan 2013
    Posts
    377


    getIntrinsicWidth() and getIntrinsicHeight() return doubled values

    Hello,

    I tried to run our game on Ouya which is written in plain Android SDK Java, and when loading the graphics, we use getIntrinsicWidth() and getIntrinsicHeight() to determine the pixel-size of that image. However, it always returns twice the amount on the Ouya. For example, if a graphic has 32x32 pixels, both functions return 64 instead of 32.

    Any idea why this is the case?

  2. #2
    OUYA Developer zeha's Avatar
    Join Date
    Jan 2013
    Posts
    377


    ...so I guess no one is using the standard android sdk then?

  3. #3
    Inebriated Staff Ninja DrunkPunk's Avatar
    Join Date
    Mar 2013
    Location
    MT
    Posts
    6,053


    Probably a good bet that most are using the ODK to get things optimized for the Ouya a tad better.
    DrnkPnk says, "Obey The Beard!"
    I helped create a mini-game in Explosive Dinosaurs. Otakupunk played it, and now you can too!

    Follow my weirdness - > Instagram

  4. #4
    OUYA Devotee Juggle's Avatar
    Join Date
    May 2013
    Location
    Yuma, AZ
    Posts
    169


    Hmmm, I don't think the ODK would even come into play on that kind of thing. It's really just support for controllers, purchases and storing game data. Pretty much everything else is plain vanilla ADK.

    However all I've done so far is with libGDX so I haven't gone low level enough to deal with those functions. I haven't heard of any other similar issues though. I'd suggest posting on the official Ouya Dev forums to see if anyone with more experience or from Ouya has any insight: http://forums.ouya.tv/

  5. #5
    OUYA Developer zeha's Avatar
    Join Date
    Jan 2013
    Posts
    377


    Yes that might be a good idea, so I just asked the same question there. And yes @DrunkPunk, that has nothing to do with the ODK, the ODK is just a small addition to the standard Android SDK, not an alternative.

Bookmarks

Bookmarks
  • Submit to Digg Digg
  • Submit to del.icio.us del.icio.us
  • Submit to StumbleUpon StumbleUpon
  • Submit to Google Google

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •