anyone interested in a way to remove the black bars on autoscale mode??
i modified the CCDirectorMac to be able to scale the image to any resolution and any aspect ratio without black bars, the bad side, its that it can be resized to any aspect ratio so if the resolution is of drastically diferent proportions the images will look stretched or smashed
i will try to make it interchangeable in the future that you can choose to keep the black bars(preserving aspect ratio) or remove the black bars and fit any resolution
you just need to set the original win size to the design proportions..
if there is anyone interested here it is:
around line 205 in CCDirectorMac.m just above the if statement insert this
float resMultiplierX,resMultiplierY,transformedResolutionX,transformedResolutionY;
inside the if, almost at the bottom inser this
resMultiplierX = (float)1 * winSizeInPixels_.width / originalWinSize_.width;
resMultiplierY = (float)1 * winSizeInPixels_.height / originalWinSize_.height;
transformedResolutionX = originalWinSize_.width * resMultiplierX;
transformedResolutionY = originalWinSize_.height * resMultiplierY;
then below theres a switch statement liks this
switch (projection) {
case kCCDirectorProjection2D:
change the line below to glViewport(0, 0, transformedResolutionX, transformedResolutionY);
then in the init of the class put this line
[self setProjection:kCCDirectorProjection2D];
thats it, its a very very hacky solution for now, but it works