Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to configure my project? config.lua and Dinamic Resize problem
Started by bsdrago Nov 09 2010 08:10 AM

3 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bsdrago

[GLOBAL: userInfoPane.html]
bsdrago
  • Enthusiast

  • 94 posts
  • Corona SDK

I dont what im doing wrong Dinamic Resize is not working. In config.lua I wrote the follow code, but its not working:

content =
{
fps = 30,
antialias = true,
scale = "zoomEven"
	},

I even try put in my code, but my image still the same size:

if (display.contentWidth > 320) then 
logo.xScale = 2
logo.yScale = 2
end

What is wrong?
uid: 9133 topic_id: 3524 reply_id: 303524


[TOPIC: post.html]
#2

finnk

[GLOBAL: userInfoPane.html]
finnk
  • Contributor

  • 149 posts
  • Corona SDK

Maybe you should try defining the native width and height of the screen you're developing for:
application ={        content =        {                width = 640,                height = 960,                scale = "zoomEven",		fps = 30,        },}


Also, I assume the contentWidth is always greater than 320.
uid: 11024 topic_id: 3524 reply_id: 10701


[TOPIC: post.html]
#3

reddotinc

[GLOBAL: userInfoPane.html]
reddotinc
  • Contributor

  • 143 posts
  • Guests

I use this config and it works perfectly:

application ={	content =	{		width = 320,		height = 480,		fps=60,		scale = "zoomStretch", 		imageSuffix =		{			["@2x"] = 2,		},	},}
uid: 7143 topic_id: 3524 reply_id: 10703


[TOPIC: post.html]
#4

bsdrago

[GLOBAL: userInfoPane.html]
bsdrago
  • Enthusiast

  • 94 posts
  • Corona SDK

Thanks to all

THATS is WHY am posting in a NEW USER topic...

Ive found the problem. Pay Attention: This is my config.lua:

settings =
{
        content =
        {

Did you see? Settings, not application. Thats is why was an error. Thnks to all.
uid: 9133 topic_id: 3524 reply_id: 10724



[topic_controls]
[/topic_controls]