void DesktopWindow::setDesktopScaleRatio(double scale_ratio) {
buffer->setScaleRatio(scale_ratio);
InvalidateRect(frameHandle, 0, FALSE);
- calculateScrollBars();
+ if (!isAutoScaling()) calculateScrollBars();
if (isToolbarEnabled()) refreshToolbarButtons();
+ char *newTitle = new char[strlen(desktopName)+20];
+ sprintf(newTitle, "%s @ %i%%", desktopName, getDesktopScale());
+ SetWindowText(handle, TStr(newTitle));
+ delete [] newTitle;
}
void DesktopWindow::fitBufferToWindow(bool repaint) {
void
DesktopWindow::setName(const char* name) {
SetWindowText(handle, TStr(name));
+ strCopy(desktopName, name, sizeof(desktopName));
}