0. If my game is (for example) 1024x768, then screenshots are always saved in 1024x768, indifferent to RENPY_SCALE_FACTOR value. So the picture is resized to a little one, to be drawn on screen, then resized back, to be saved to png. Quality suffers twice.
1. If RENPY_SCALE_FACTOR is lower, then a given value (in my case it is about 0.61), then RenPy fails to show proper text frame. frame.png is 41x41, style.window.background = Frame("frame.png", 20, 20), so 1x1 pixel still should remain in theory, but it doesn't... It's not a big deal to make it 42x42 this time, but I just inform, that a bug exists.
2. Some strange things are going on with pygame if resize is used. When factor=1.0 everything works properly. If factor differs, I get a trouble like this (traceback included):
AttributeError: 'Surface' object has no attribute 'get_rect'
at moment I call smth like
tst=pygame.image.load("frame.png").get_rect(topleft = (0,0)) #test
Before everything crashes, I see the background of thew game screen, it is properly loaded and has proper resized according to RENPY_SCALE_FACTOR size though using "set_mode((1024, 768)...)"
appropriate fragment of im02.rpy:
P.S. Sorry for my english...def set_mode():
if _preferences.fullscreen:
fsflag = FULLSCREEN
else:
fsflag = 0
screen = renpygame.display.set_mode((1024, 768), fsflag, 32)
return screen
label im02:
python:
pygame.init()
screen = set_mode()
clock = pygame.time.Clock()
all = pygame.sprite.RenderUpdates()
group = pygame.sprite.LayeredDirty()
background = pygame.image.load("images/im02/bg_0_0.png")
screen.blit(background, (0,0))
pygame.display.flip()
SpriteWithModes.containers = all
Digit.containers = all
tst=pygame.image.load("frame.png").get_rect(topleft = (0,0)) #test