about changing of the size of a window in Windows [Solved]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

about changing of the size of a window in Windows [Solved]

#1 Post by IrinaLazareva »

Hello. How to disconnect a possibility of change of the size of a window in Windows system...

Image

and to block this button?

Image

...as in old versions of Ren'Py ^_^

Image
Last edited by IrinaLazareva on Wed Jul 06, 2016 3:26 pm, edited 1 time in total.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: about changing of the size of a window in Windows

#2 Post by Donmai »

I believe it's still the same method.

Code: Select all

config.gl_resize = False
Curiously, I've never noticed that it also disables the maximize window button.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: about changing of the size of a window in Windows

#3 Post by IrinaLazareva »

Hmm. Strange, it hasn't worked..
However, your adwice has helped me to find the solution

Code: Select all

config.gl_enable = False
Thank You very much!!

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: about changing of the size of a window in Windows [Solve

#4 Post by Donmai »

Hmm. Maybe not a solution. You are disabling gl, which may not be a good idea. Ren'Py itself still use

Code: Select all

    config.gl_resize = False
You can check this by going to Preferences/Actions/Open launcher project. This will open the launcher as a project in the launcher. Go to options.rpy and check what's on line 186.
Try it as it's being used there:

Code: Select all

init -1 python hide:
    config.gl_resize = False
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: about changing of the size of a window in Windows [Solve

#5 Post by IrinaLazareva »

very strange...
I tried to add this line exactly to (init -1 python hide)'s block
It doesn't help.

And window of the launcher can be changed :/
Image
and I need to disabled it...

Ok, if I'll disable gl by config.gl_enable. What bad can happen?

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: about changing of the size of a window in Windows [Solve

#6 Post by Donmai »

Not certain, but by disabling OpenGL aceleration, your game may lose performance or face some problems in other machines. Some Ren'Py effects, like the additive blending mode, only work well with the OpenGL renderer. I'm really not sure though, as I'm not the technical kind.
It's strange that config.gl_resize isn't working in your machine. I can't resize the launcher window in my system, in fact I never could.
Maybe some problem with the OpenGL drivers installed in your system?
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: about changing of the size of a window in Windows [Solve

#7 Post by IrinaLazareva »

Donmai wrote: Maybe some problem with the OpenGL drivers installed in your system?
Quite perhaps...
I will try to check it on other PC.

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: about changing of the size of a window in Windows [Solve

#8 Post by IrinaLazareva »

Well, config.gl_resize works in other PC...

Post Reply

Who is online

Users browsing this forum: No registered users