Which is correct for instance size

  • Автор темы Автор темы lokiys
  • Дата начала Дата начала

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 922
Реакции
1 206
Баллы
113
C#:
Развернуть Свернуть Копировать
instance.SetWindowSize(project.Profile.AvailScreenWidth, project.Profile.AvailScreenHeight);
instance.SetWindowSize(project.Profile.ScreenSizeWidth, project.Profile.ScreenSizeHeight);

This available returns minus x pixels, for height, meaning it's considering taskbar if i understand it right, But then which should i use real screen resolution or this available in that method, to look natural?

There are a couple results
Screen Resolution Available: 1536x816; Screen Real: 1536x864
Screen Resolution Available: 1366x738; Screen Real: 1366x768
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)