Top half os simluator's window is off the screen in iPad Landscape Mode

Home / Forums / Marmalade Archive / General Development Questions / Top half os simluator's window is off the screen in iPad Landscape Mode
8 replies [Last post]
by: Dane M
Status: Offline
Joined: 2012-05-27
Points: 270

I changed Simulator resolution to iPad Landscape (Configuration > Surface) but half top of the window is off the screen. Restarting configuration solve the problem but after changing resolution to iPad Landscape, I face this problem again.

Another problem: Quality of graphics displayed in simulator is lower than my original graphic. I don't have any device to test the quality on real tablet.
(See here: http://postimage.org/image/kr9g6tn29/) Any thought why this happen?

by: matth
Status: Offline
Joined: 2010-07-23
Points: 22150
It looks like your texture

It looks like your texture has been colour reduced, probably down to RGB565 or ARGB1555

by: Dane M
Status: Offline
Joined: 2012-05-27
Points: 270
I tried PNG (24 bit with and

I tried PNG (24 bit with and without alpha channel), PNG (8 bit with and without alpha channel), BMP (non-indexed and indexed) but quality of all formats are lowered. Actually my code is very simple:

I create image outside. Here is a simple version. (I removed unrelated part)
CIw2DImage* image = Iw2DCreateImage("Zebra/Sun.bmp");

// Main Game Loop
while (!s3eDeviceCheckQuitRequest())
{
Iw2DDrawImage(image, CIwSVec2(0, 0));
}

I should mention that Sky and Sun are in different files. (Sun is transparent) But as I said I tried all different format (transparent and non-transparent) and I still have the problem.

by: Dane M
Status: Offline
Joined: 2012-05-27
Points: 270
No, my texture is not color

No, my texture is not color reduced. It's high quality as I shown in the picture. Marmalade Simulator show it with reduced quality.

by: matth
Status: Offline
Joined: 2010-07-23
Points: 22150
I mean that Marmalade may be

I mean that Marmalade may be reducing the number of colours in your image to optimise the texture that is generated from your image. You can check which format the texture is in by calling:

CIwImage::Format format = image ->GetMaterial()->GetTexture()->GetFormat();

If the returned format is correct then it could be a simulator problem.

by: Dane M
Status: Offline
Joined: 2012-05-27
Points: 270
format is ABGR_8888 for my 24

format is ABGR_8888 for my 24-bit Alpha channel image. It's weird because I have this problem with all different image formats.

Can someone in the Marmalade team confirm that the two issues I reported (off the screen window of simulator) and graphic quality reduction are actually bug? And if yes when they are going to resolve?

About quality graphic reduction I seriously doubt that it's bug, as I guess many people already developed and published their application using IW and 2D graphic format.

by: Dane M
Status: Offline
Joined: 2012-05-27
Points: 270
I found the solution. In

I found the solution. In Configuration > Surface there is an option for changing Pixel Format (Device Pixel Format). It was on RGB444 by default. Changing it to RGB888 solved the problem.

by: matth
Status: Offline
Joined: 2010-07-23
Points: 22150
Nice find Dane M, I will add

Nice find Dane M, I will add that to the Marmalade SDK FAQ

by: Dane M
Status: Offline
Joined: 2012-05-27
Points: 270
But I still have the problem

But I still have the problem with the simulator that goes off screen. It's very annoying. Every time I run the simulator, I have to press Alt + F then press left arrow key to go into the window menu then choose "Move" and then move down simulator windows using down arrow key. It's really frustrating. Is this really a simulator bug? If yes, is there any workarounds?

Latest Posts

Latest Comments

Top Contributors

  • Chris D : 27,010
  • MonRoyals : 26,970
  • Salman : 26,720
  • Jez Hammond : 20,130
  • pjan : 11,150
  • gjw : 10,350
  • Paolo Oliverio : 9,640
  • Beaker_2 : 8,390
  • Kite : 8,210
  • bluescrn : 7,810