Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Aberations in graphics
02-27-2007, 06:26 AM,
#25
 
joevenzon Wrote:
Quote:Rather than try to guess which menu to reload textures in, etc., we need to just make the game restart after changing display settings once (except for in Linux where this isn't necessary). In order to make the game restart itself, we'd need to change a lot...like make main into a class, that can be re-initialized.

I don't quite follow you here. The program shouldn't need to restart itself, it just needs to re-init everything, which is what it used to do whenever you clicked OK in the graphics options.
What I mean, is that on Windows and OS X, if you change the resolution twice, the graphics get messed up. If you restart the game things are better again. So if we had a way to destroy our SDL Window, and create a new one, that would be (I think) the same thing as a complete restart. This would be pretty easily possible if we abstracted most of the stuff in main.cpp into a manager class that could be reinitialized itself. Does that make more sense?


joevenzon Wrote:I realize this would be a band-aid, but it seems better than just doing nothing. Your idea of having a "game must be restarted before changes are applied" dialog pop up works, too.
I'll set up one of those for now. This is how we have solved the problem in the past and I think it works fairly well.
Reply


Messages In This Thread
Aberations in graphics - by reece146 - 02-07-2007, 11:25 PM
[No subject] - by thelusiv - 02-07-2007, 11:58 PM
[No subject] - by reece146 - 02-08-2007, 12:05 AM
[No subject] - by reece146 - 02-08-2007, 12:36 AM
[No subject] - by joevenzon_phpbb2_import3 - 02-08-2007, 10:50 AM
[No subject] - by reece146 - 02-08-2007, 11:41 AM
[No subject] - by thelusiv - 02-09-2007, 04:14 AM
[No subject] - by reece146 - 02-09-2007, 10:05 PM
[No subject] - by thelusiv - 02-11-2007, 01:28 PM
[No subject] - by reece146 - 02-11-2007, 06:16 PM
[No subject] - by thelusiv - 02-12-2007, 09:34 PM
[No subject] - by abs1nth - 02-15-2007, 12:36 PM
[No subject] - by abs1nth - 02-15-2007, 12:38 PM
[No subject] - by abs1nth - 02-15-2007, 12:39 PM
[No subject] - by abs1nth - 02-15-2007, 03:05 PM
[No subject] - by abs1nth - 02-15-2007, 03:07 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-18-2007, 02:59 PM
[No subject] - by rookie1 - 02-24-2007, 11:41 AM
[No subject] - by rookie1 - 02-25-2007, 12:14 AM
[No subject] - by thelusiv - 02-25-2007, 12:47 AM
[No subject] - by thelusiv - 02-25-2007, 12:34 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-25-2007, 01:38 PM
[No subject] - by thelusiv - 02-25-2007, 02:35 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-25-2007, 04:16 PM
[No subject] - by thelusiv - 02-27-2007, 06:26 AM
[No subject] - by joevenzon_phpbb2_import3 - 02-27-2007, 12:40 PM
[No subject] - by abs1nth - 02-27-2007, 07:15 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-27-2007, 09:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)