diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 5a4d726..b0ede8a 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -4,9 +4,12 @@ English (US) release notes, mirroring CHANGELOG.md (Brazilian Portuguese). Befor ## [Unreleased] ### What's new +- **Hide desktop icons during the session** (System, off by default): the icons disappear while the session runs, so the TV looks clean like a console, and come back when you go back to the PC. Icons that were already hidden stay hidden, and if the app or the PC goes down mid-session, the next start shows them again (asked by PLEXX-DE, issue #210). (#214) - TV: an optional **Command when going back to the PC** is sent to the TV when the desk comes back, before standby, to take it to its Home screen or another input instead of only turning it off (asked by PLEXX-DE, issue #209). (#213) ### Changes - TV control (Google TV / Android TV over the network) is back: the **TV** category returns to the System tab and sessions again turn the TV on, switch it to the PC's input (also with your own **Input command**) and, if chosen, put it in standby on the way back. Anyone who set it up in 1.6 finds it as they left it. (#208) +### Fixes +- Game screen resolution: a TV left at @59 Hz when @60 is asked for (the "60 Hz" of TVs, 59.94) counts as in the mode asked for. Before, Console Mode re-applied the mode twice at the start of every session, the TV going blank each time, and logged that it couldn't; per-game profiles re-applied it too. The log now says which mode the screen ended up in. (#212) ## [1.7.0] ### What's new diff --git a/CHANGELOG.md b/CHANGELOG.md index c36f672..36d1adb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,12 @@ Notas em português do Brasil; a versão em inglês (Estados Unidos) fica em `CH ## [Unreleased] ### Novidades +- **Esconder os ícones da área de trabalho na sessão** (Sistema, desligado por padrão): os ícones somem enquanto a sessão roda, para a TV ficar limpa como num console, e voltam ao voltar ao PC. Ícones que já estavam escondidos continuam assim, e se o app ou o PC cair no meio, a próxima abertura os mostra de novo (pedido do PLEXX-DE, issue #210). (#214) - TV: um **Comando ao voltar ao PC** opcional vai para a TV quando a mesa volta, antes da espera, para levá-la à tela inicial ou a outra entrada em vez de só desligar (pedido do PLEXX-DE, issue #209). (#213) ### Mudanças - O controle da TV (Google TV / Android TV pela rede) volta: a categoria **TV** reaparece na aba Sistema e a sessão volta a ligar a TV, trocar para a entrada do PC (inclusive com um **Comando de entrada** próprio) e, se escolhido, colocá-la em espera na volta. Quem já tinha configurado na 1.6 encontra tudo como deixou. (#208) +### Correções +- Resolução da tela de jogo: uma TV que fica em @59 Hz quando se pede @60 (o "60 Hz" de TV, 59,94) conta como no modo pedido. Antes o Console Mode reaplicava o modo mais duas vezes no início de toda sessão, com a TV apagando a cada vez, e registrava que não tinha conseguido; o perfil por jogo também reaplicava. O log agora diz em que modo a tela ficou. (#212) ## [1.7.0] ### Novidades diff --git a/docs/GUIDE.de-DE.md b/docs/GUIDE.de-DE.md index 85d3f99..63519de 100644 --- a/docs/GUIDE.de-DE.md +++ b/docs/GUIDE.de-DE.md @@ -35,7 +35,7 @@ Die Registerkarte **System** enthält alle Einstellungen, darunter Controller-Ta Bei der Rückkehr aus Big Picture schließt **Steam beim Zurückkehren zum PC in den Infobereich minimieren** das Client-Fenster, während Steam weiterläuft. Ist die Option aus, bleibt der Desktop-Client geöffnet. Steam-Fenster werden nicht angetastet, wenn ein Spiel läuft oder sich sein Zustand nicht prüfen lässt. -Ein Wechsel des Hauptbildschirms kann Windows dazu bringen, die Desktopsymbole neu anzuordnen. **Desktopsymbole wieder an ihren Platz setzen** (standardmäßig an) speichert vor der Sitzung, wo sie liegen, und setzt sie nach der Wiederherstellung wieder dorthin. Ist auf dem Desktop **Symbole automatisch anordnen** aktiv, passiert nichts, weil Windows sie dann selbst anordnet. +Ein Wechsel des Hauptbildschirms kann Windows dazu bringen, die Desktopsymbole neu anzuordnen. **Desktopsymbole wieder an ihren Platz setzen** (standardmäßig an) speichert vor der Sitzung, wo sie liegen, und setzt sie nach der Wiederherstellung wieder dorthin. Ist auf dem Desktop **Symbole automatisch anordnen** aktiv, passiert nichts, weil Windows sie dann selbst anordnet. **Desktopsymbole während der Sitzung ausblenden** (standardmäßig aus) blendet sie aus, solange die Sitzung läuft, für einen aufgeräumten Konsolen-Look, und zeigt sie bei der Rückkehr zum PC wieder an; bereits ausgeblendete Symbole bleiben ausgeblendet, und nach einer unterbrochenen Sitzung erscheinen sie beim nächsten Start wieder. **Mauszeiger aus dem Weg räumen** (standardmäßig an): Sobald der Launcher auf dem Fernseher erscheint, wandert der Zeiger in die untere rechte Ecke des Spielbildschirms, und einige Sekunden später noch einmal, weil Steam ihn beim Öffnen von Big Picture wieder zentriert. Beim Zurückkehren zum PC kommt er an seine alte Stelle zurück. Den Zeiger ganz auszublenden bleibt eine Option im Sitzungsmenü. diff --git a/docs/GUIDE.es-ES.md b/docs/GUIDE.es-ES.md index f87f513..a2bc7a8 100644 --- a/docs/GUIDE.es-ES.md +++ b/docs/GUIDE.es-ES.md @@ -35,7 +35,7 @@ Abre la acción del atajo que quieras configurar, elige **Definir** o **Cambiar* Al volver de Big Picture, **Enviar Steam a la bandeja al volver al PC** cierra la ventana del cliente y deja Steam en marcha. Con la opción desactivada, el cliente de escritorio se queda abierto. Las ventanas de Steam no se tocan si hay un juego en marcha o si no se puede comprobar su estado. -Cambiar la pantalla principal puede hacer que Windows reordene los iconos del escritorio. **Devolver los iconos del escritorio a su sitio** (activado por defecto) guarda su posición antes de la sesión y los vuelve a colocar después de restaurar el escritorio. No hace nada si **Organizar iconos automáticamente** está activado en el escritorio, porque entonces Windows los coloca por sí mismo. +Cambiar la pantalla principal puede hacer que Windows reordene los iconos del escritorio. **Devolver los iconos del escritorio a su sitio** (activado por defecto) guarda su posición antes de la sesión y los vuelve a colocar después de restaurar el escritorio. No hace nada si **Organizar iconos automáticamente** está activado en el escritorio, porque entonces Windows los coloca por sí mismo. **Ocultar los iconos del escritorio en la sesión** (desactivado por defecto) los oculta mientras dura la sesión, para un aspecto limpio de consola, y los vuelve a mostrar al volver al PC; si ya estaban ocultos, siguen así, y una sesión interrumpida los muestra de nuevo al abrir la aplicación. **Apartar el puntero del ratón** (activado por defecto): cuando el iniciador aparece en la TV, el puntero va a la esquina inferior derecha de la pantalla de juego, y otra vez unos segundos después, porque Steam lo vuelve a centrar al abrir Big Picture. Al volver al PC, vuelve a donde estaba. Ocultar el puntero del todo sigue siendo una opción del menú de la sesión. diff --git a/docs/GUIDE.fr-FR.md b/docs/GUIDE.fr-FR.md index 805eacb..73176d7 100644 --- a/docs/GUIDE.fr-FR.md +++ b/docs/GUIDE.fr-FR.md @@ -35,7 +35,7 @@ Ouvrez l'action de raccourci à configurer, choisissez **Définir** ou **Modifie Au retour de Big Picture, **Réduire Steam dans la zone de notification au retour au PC** ferme la fenêtre du client tout en laissant Steam en marche. Si l'option est désactivée, le client de bureau reste ouvert. Les fenêtres de Steam ne sont pas touchées quand un jeu est en cours ou quand son état ne peut pas être vérifié. -Changer d'écran principal peut amener Windows à mélanger les icônes du bureau. **Remettre les icônes du bureau à leur place** (activé par défaut) enregistre leur position avant la session et les remet en place une fois le bureau restauré. Sans effet si **Réorganiser automatiquement les icônes** est activé sur le bureau, car Windows les place alors lui-même. +Changer d'écran principal peut amener Windows à mélanger les icônes du bureau. **Remettre les icônes du bureau à leur place** (activé par défaut) enregistre leur position avant la session et les remet en place une fois le bureau restauré. Sans effet si **Réorganiser automatiquement les icônes** est activé sur le bureau, car Windows les place alors lui-même. **Masquer les icônes du bureau pendant la session** (désactivé par défaut) les masque pendant la session, pour un rendu net de console, et les réaffiche au retour sur le PC ; des icônes déjà masquées le restent, et une session interrompue les réaffiche à la prochaine ouverture. **Écarter le pointeur de la souris** (activé par défaut) : quand le lanceur apparaît sur la TV, le pointeur part dans le coin inférieur droit de l'écran de jeu, puis encore quelques secondes plus tard, car Steam le recentre à l'ouverture de Big Picture. Au retour sur le PC, il revient là où il était. Masquer complètement le pointeur reste un choix du menu de session. diff --git a/docs/GUIDE.md b/docs/GUIDE.md index aae0fe4..12ec1f5 100644 --- a/docs/GUIDE.md +++ b/docs/GUIDE.md @@ -43,7 +43,7 @@ Open the shortcut action you want to configure, choose **Set** or **Change**, ho When returning from Big Picture, **Send Steam to the tray when going back to the PC** closes the client window while keeping Steam running. With the option off, the desktop client is left open. Steam windows are left alone when a game is running or its state cannot be checked. -Changing the main display can make Windows reshuffle the desktop icons. **Put desktop icons back in place** (on by default) saves where they are before the session and puts them back after the desk is restored. It does nothing when the desktop's **Auto arrange icons** is on, since Windows lays them out itself then. +Changing the main display can make Windows reshuffle the desktop icons. **Put desktop icons back in place** (on by default) saves where they are before the session and puts them back after the desk is restored. It does nothing when the desktop's **Auto arrange icons** is on, since Windows lays them out itself then. **Hide desktop icons during the session** (off by default) hides them while the session runs, for a clean console look, and shows them again when you go back to the PC; icons that were already hidden stay hidden, and an interrupted session shows them again on the next start. **Move the mouse pointer out of the way** (on by default): when the launcher shows up on the TV, the pointer goes to the bottom-right corner of the game screen, and again a few seconds later because Steam recenters it while Big Picture opens. Going back to the PC puts it back where it was. Hiding the pointer altogether is still a choice in the session menu. diff --git a/docs/GUIDE.pt-BR.md b/docs/GUIDE.pt-BR.md index 5d27b2a..66f383e 100644 --- a/docs/GUIDE.pt-BR.md +++ b/docs/GUIDE.pt-BR.md @@ -43,7 +43,7 @@ Abra a ação de atalho que deseja configurar, escolha **Definir** ou **Alterar* Ao voltar do Big Picture, **Mandar a Steam para a bandeja ao voltar ao PC** fecha a janela do cliente e mantém a Steam em execução. Com a opção desligada, o cliente desktop fica aberto. As janelas da Steam são preservadas quando há jogo rodando ou não é possível verificar esse estado. -Trocar a tela principal pode fazer o Windows embaralhar os ícones da área de trabalho. **Devolver os ícones da área de trabalho ao lugar** (ligado por padrão) salva a posição deles antes da sessão e os coloca de volta depois que a mesa é restaurada. Não faz nada quando **Organizar ícones automaticamente** está ligado na área de trabalho, porque aí o próprio Windows os arruma. +Trocar a tela principal pode fazer o Windows embaralhar os ícones da área de trabalho. **Devolver os ícones da área de trabalho ao lugar** (ligado por padrão) salva a posição deles antes da sessão e os coloca de volta depois que a mesa é restaurada. Não faz nada quando **Organizar ícones automaticamente** está ligado na área de trabalho, porque aí o próprio Windows os arruma. **Esconder os ícones da área de trabalho na sessão** (desligado por padrão) some com eles enquanto a sessão roda, para o visual limpo de console, e os mostra de novo ao voltar ao PC; ícones que já estavam escondidos continuam assim, e uma sessão interrompida os mostra de novo na próxima abertura. **Tirar o ponteiro do mouse do caminho** (ligado por padrão): quando o iniciador aparece na TV, o ponteiro vai para o canto inferior direito da tela de jogo, e de novo alguns segundos depois, porque a Steam o recentraliza ao abrir o Big Picture. Ao voltar ao PC, ele volta para onde estava. Esconder o ponteiro de vez continua sendo uma escolha no menu da sessão. diff --git a/docs/GUIDE.ru-RU.md b/docs/GUIDE.ru-RU.md index 92e2593..a4116de 100644 --- a/docs/GUIDE.ru-RU.md +++ b/docs/GUIDE.ru-RU.md @@ -35,7 +35,7 @@ При возврате из Big Picture параметр **«Сворачивать Steam в область уведомлений при возврате к ПК»** закрывает окно клиента, но Steam продолжает работать. Если параметр выключен, клиент на рабочем столе остаётся открытым. Окна Steam не трогаются, если запущена игра или её состояние не удаётся проверить. -При смене основного экрана Windows может перемешать значки рабочего стола. Параметр **«Возвращать значки рабочего стола на место»** (включён по умолчанию) запоминает их расположение перед сеансом и возвращает значки после восстановления рабочего места. Если на рабочем столе включено **«Упорядочить значки автоматически»**, параметр ничего не делает: Windows расставляет их сам. +При смене основного экрана Windows может перемешать значки рабочего стола. Параметр **«Возвращать значки рабочего стола на место»** (включён по умолчанию) запоминает их расположение перед сеансом и возвращает значки после восстановления рабочего места. Если на рабочем столе включено **«Упорядочить значки автоматически»**, параметр ничего не делает: Windows расставляет их сам. Параметр **«Скрывать значки рабочего стола во время сеанса»** (по умолчанию выключен) скрывает их на время сеанса, чтобы всё выглядело чисто, как на консоли, и показывает снова при возврате к ПК; уже скрытые значки остаются скрытыми, а после прерванного сеанса они появятся при следующем запуске. **Убирать указатель мыши** (включено по умолчанию): когда лаунчер появляется на телевизоре, указатель перемещается в правый нижний угол игрового экрана, а через несколько секунд — ещё раз, потому что Steam снова ставит его в центр при открытии Big Picture. При возврате к ПК он возвращается на прежнее место. Полностью скрыть указатель по-прежнему можно в меню сеанса. diff --git a/docs/TESTING.md b/docs/TESTING.md index a590d69..156456e 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -547,6 +547,20 @@ Pré-requisito: RivaTuner Statistics Server instalado, com "Show On-Screen Displ - [ ] Com a sessão ativa e a opção ligada, minimizar e reabrir pela bandeja continua funcionando; o atalho do controle para abrir o app também traz a janela de volta. - [ ] Fechar no X (sem sessão ativa) continua fechando o app, com a opção ligada ou desligada. +## Esconder os ícones da área de trabalho na sessão (#214, issue #210) + +- [ ] Ligado, numa sessão de verdade na TV: os ícones não aparecem na TV em nenhum momento depois que a sessão começa (nem atrás do iniciador) e voltam nas telas da mesa ao voltar ao PC. Resultado: ______ +- [ ] Ligado, com os ícones já escondidos antes (botão direito → Exibir → Mostrar ícones desmarcado): continuam escondidos depois da sessão. Resultado: ______ +- [ ] Junto com **Devolver os ícones ao lugar**: os ícones voltam visíveis e nas posições de antes. Resultado: ______ +- [ ] Fechar o Console Mode à força no meio da sessão e abrir de novo: os ícones aparecem de novo (log "Ícones da área de trabalho: visíveis de novo"). Resultado: ______ +- [ ] Desligado (padrão): nada muda nos ícones. Resultado: ______ + +## Resolução da TV a 59/60 Hz (#212) + +- [ ] TV como tela de jogo com 2560x1440 @ 60 Hz em Sistema: a sessão começa e a TV muda de resolução **uma vez só** (sem apagar duas ou três vezes). O log tem "Telas: ... em 2560x1440@59 (pedido 2560x1440@60)" ou "@60", e nenhum "Não foi possível aplicar". Resultado: ______ +- [ ] O mesmo com 3840x2160 @ 60 e com "Não alterar": nada muda para pior. Resultado: ______ +- [ ] Perfil por jogo salvo com @60: abrir o jogo com a TV já em @59 não faz a TV piscar. Resultado: ______ + ## Comando na TV ao voltar ao PC (#213, issue #209) - [ ] Android TV configurada, **Comando ao voltar ao PC** = `input keyevent 3`, espera desligada: ao voltar ao PC a TV vai para a tela inicial e continua ligada. O log tem "TV: voltar ao PC (androidTv) ok". Resultado: ______ diff --git a/src/ConsoleMode/Models/Models.cs b/src/ConsoleMode/Models/Models.cs index e7523bb..10d57b8 100644 --- a/src/ConsoleMode/Models/Models.cs +++ b/src/ConsoleMode/Models/Models.cs @@ -106,6 +106,9 @@ public sealed class AppConfig /// Put the desktop icons back where they were after the session (issue #30). public bool RestoreDesktopIcons { get; set; } = true; + /// Hide the desktop icons while the session runs and show them again after it (issue #210). Off by default. + public bool HideDesktopIcons { get; set; } + /// Move the mouse pointer to a corner of the game screen once the launcher is up, and back afterwards (issue #172). public bool ParkPointer { get; set; } = true; @@ -455,6 +458,8 @@ public sealed class ConsoleRuntimeState public string? BackupAudioId { get; set; } /// The desktop icons read before the session; null when they aren't restored. public List? DesktopIcons { get; set; } + /// The session hid the desktop icons (they were showing): the restore shows them again. + public bool DesktopIconsHidden { get; set; } /// JoyChromium was opened from the session menu this session (it goes back to a window with the desk). public bool JoyChromiumOpened { get; set; } /// Park the pointer this session; how many times it was parked, when, and where it was before. diff --git a/src/ConsoleMode/Native/DesktopIcons.cs b/src/ConsoleMode/Native/DesktopIcons.cs index fbecfe6..d980fbd 100644 --- a/src/ConsoleMode/Native/DesktopIcons.cs +++ b/src/ConsoleMode/Native/DesktopIcons.cs @@ -49,6 +49,31 @@ public static int Move(IReadOnlyList icons) => OnSta(() => return moved; }, -1); + /// + /// Hides or shows the desktop icons, as right click → View → Show desktop icons does (issue #210), through the + /// desktop's IFolderView2 (FWF_NOICONS). True when it changed them, false when they already were that way, + /// null when the desktop couldn't be reached. + /// + /// Whether the desktop icons are hidden now; null when the desktop couldn't be reached. Changes nothing. + public static bool? IsHidden() => OnSta(() => + { + using var desktop = DesktopView.Open(); + if (desktop?.View is not IFolderView2 view) return null; + Marshal.ThrowExceptionForHR(view.GetCurrentFolderFlags(out var flags)); + return (flags & FwfNoIcons) != 0; + }, null); + + public static bool? SetHidden(bool hide) => OnSta(() => + { + using var desktop = DesktopView.Open(); + if (desktop?.View is not IFolderView2 view) return null; + Marshal.ThrowExceptionForHR(view.GetCurrentFolderFlags(out var flags)); + var hidden = (flags & FwfNoIcons) != 0; + if (hidden == hide) return false; + Marshal.ThrowExceptionForHR(view.SetCurrentFolderFlags(FwfNoIcons, hide ? FwfNoIcons : 0)); + return true; + }, null); + private static T OnSta(Func work, T fallback) { var result = fallback; @@ -170,6 +195,7 @@ private static void Release(List objects) private const uint SvgioAllView = 2; private const uint SvsiPositionItem = 0x80; private const uint ShgdnForParsing = 0x8000; + private const uint FwfNoIcons = 0x1000; // STRRET: a UINT and a union whose biggest member is WCHAR[MAX_PATH]; padded for 64-bit. private const int StrretSize = 8 + 260 * 2; @@ -247,6 +273,35 @@ [PreserveSig] int SelectAndPositionItems(uint cidl, [MarshalAs(UnmanagedType.LPA [MarshalAs(UnmanagedType.LPArray)] Point[] apt, uint dwFlags); } + // IFolderView's slots, then IFolderView2's up to the folder flags. + [ComImport, Guid("1AF3A467-214F-4298-908E-06B03E0B39F9"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] + private interface IFolderView2 + { + void _GetCurrentViewMode(); + void _SetCurrentViewMode(); + void _GetFolder(); + void _Item(); + void _ItemCount(); + void _Items(); + void _GetSelectionMarkedItem(); + void _GetFocusedItem(); + void _GetItemPosition(); + void _GetSpacing(); + void _GetDefaultSpacing(); + void _GetAutoArrange(); + void _SelectItem(); + void _SelectAndPositionItems(); + void _SetGroupBy(); + void _GetGroupBy(); + void _SetViewProperty(); + void _GetViewProperty(); + void _SetTileViewProperties(); + void _SetExtendedTileViewProperties(); + void _SetText(); + [PreserveSig] int SetCurrentFolderFlags(uint dwMask, uint dwFlags); + [PreserveSig] int GetCurrentFolderFlags(out uint pdwFlags); + } + [ComImport, Guid("000214E6-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] private interface IShellFolder { diff --git a/src/ConsoleMode/Resources/Strings.de-DE.json b/src/ConsoleMode/Resources/Strings.de-DE.json index 4bf1d33..e9632e0 100644 --- a/src/ConsoleMode/Resources/Strings.de-DE.json +++ b/src/ConsoleMode/Resources/Strings.de-DE.json @@ -113,6 +113,8 @@ "CloseSteamDescription": "Wenn du Big Picture verlässt, erhält Steam eine normale Aufforderung zum Schließen des Fensters und kann so in den Infobereich wechseln, ohne den Prozess zu beenden. Wenn ein Spiel läuft oder sein Status nicht ermittelt werden kann, bleibt das Fenster unverändert.", "RestoreIconsCard": "Desktopsymbole wieder an ihren Platz setzen", "RestoreIconsDescription": "Speichert vor der Sitzung, wo die Desktopsymbole liegen, und setzt sie bei der Rückkehr zum PC wieder dorthin, falls Windows sie beim Wechsel des Hauptbildschirms durcheinanderbringt. Bei aktivierter automatischer Anordnung passiert nichts.", + "HideIconsCard": "Desktopsymbole während der Sitzung ausblenden", + "HideIconsDescription": "Blendet die Desktopsymbole aus, solange die Sitzung läuft, damit der Fernseher aufgeräumt wie eine Konsole aussieht, und zeigt sie bei der Rückkehr zum PC wieder an. Waren sie schon ausgeblendet, bleibt es so.", "ParkPointerCard": "Mauszeiger aus dem Weg räumen", "ParkPointerDescription": "Sobald der Launcher auf dem Fernseher erscheint, wird der Zeiger in die untere rechte Ecke des Spielbildschirms bewegt, damit er nicht mitten im Bild steht. Beim Zurückkehren zum PC kommt er an seine alte Stelle zurück.", "GameProfilesCard": "Profile pro Spiel", diff --git a/src/ConsoleMode/Resources/Strings.en-US.json b/src/ConsoleMode/Resources/Strings.en-US.json index 6aade2b..e4c78fa 100644 --- a/src/ConsoleMode/Resources/Strings.en-US.json +++ b/src/ConsoleMode/Resources/Strings.en-US.json @@ -113,6 +113,8 @@ "CloseSteamDescription": "When you leave Big Picture, Steam receives a normal window-close request so it can move to the tray without exiting the process. If a game is running or its state cannot be checked, the window is left unchanged.", "RestoreIconsCard": "Put desktop icons back in place", "RestoreIconsDescription": "Saves where the desktop icons are before the session and puts them back when you return to the PC, in case Windows reshuffles them while the main display changes. Does nothing when auto arrange is on.", + "HideIconsCard": "Hide desktop icons during the session", + "HideIconsDescription": "Hides the desktop icons while the session runs, so the TV looks clean like a console, and shows them again when you go back to the PC. If they were already hidden, they stay that way.", "ParkPointerCard": "Move the mouse pointer out of the way", "ParkPointerDescription": "When the launcher shows up on the TV, moves the pointer to the bottom-right corner of the game screen so it doesn't sit in the middle of the picture. Going back to the PC puts it back where it was.", "GameProfilesCard": "Per-game profiles", diff --git a/src/ConsoleMode/Resources/Strings.es-ES.json b/src/ConsoleMode/Resources/Strings.es-ES.json index cbd33b9..261b8ed 100644 --- a/src/ConsoleMode/Resources/Strings.es-ES.json +++ b/src/ConsoleMode/Resources/Strings.es-ES.json @@ -113,6 +113,8 @@ "CloseSteamDescription": "Al salir de Big Picture, Steam recibe una solicitud normal para cerrar la ventana y pasar a la bandeja sin finalizar el proceso. Si hay un juego en ejecución o no se puede comprobar su estado, la ventana no se modifica.", "RestoreIconsCard": "Devolver los iconos del escritorio a su sitio", "RestoreIconsDescription": "Guarda la posición de los iconos del escritorio antes de la sesión y los vuelve a colocar al volver al PC, por si Windows los reordena al cambiar la pantalla principal. No hace nada si la organización automática está activada.", + "HideIconsCard": "Ocultar los iconos del escritorio en la sesión", + "HideIconsDescription": "Oculta los iconos del escritorio mientras dura la sesión, para que la TV se vea limpia como una consola, y los vuelve a mostrar al volver al PC. Si ya estaban ocultos, siguen así.", "ParkPointerCard": "Apartar el puntero del ratón", "ParkPointerDescription": "Cuando el iniciador aparece en la TV, lleva el puntero a la esquina inferior derecha de la pantalla de juego para que no quede en medio de la imagen. Al volver al PC, el puntero vuelve a donde estaba.", "GameProfilesCard": "Perfiles por juego", diff --git a/src/ConsoleMode/Resources/Strings.fr-FR.json b/src/ConsoleMode/Resources/Strings.fr-FR.json index 8990b23..fb4d1bd 100644 --- a/src/ConsoleMode/Resources/Strings.fr-FR.json +++ b/src/ConsoleMode/Resources/Strings.fr-FR.json @@ -113,6 +113,8 @@ "CloseSteamDescription": "Quand vous quittez Big Picture, Steam reçoit une demande normale de fermeture de fenêtre pour qu'il passe dans la zone de notification sans quitter le processus. Si un jeu est en cours ou si son état ne peut pas être vérifié, la fenêtre n'est pas modifiée.", "RestoreIconsCard": "Remettre les icônes du bureau à leur place", "RestoreIconsDescription": "Enregistre la position des icônes du bureau avant la session et les remet en place au retour au PC, au cas où Windows les mélange en changeant d'écran principal. Sans effet si la réorganisation automatique est activée.", + "HideIconsCard": "Masquer les icônes du bureau pendant la session", + "HideIconsDescription": "Masque les icônes du bureau pendant la session, pour que la TV reste nette comme une console, et les réaffiche au retour sur le PC. Si elles étaient déjà masquées, elles le restent.", "ParkPointerCard": "Écarter le pointeur de la souris", "ParkPointerDescription": "Quand le lanceur apparaît sur la TV, le pointeur est déplacé dans le coin inférieur droit de l'écran de jeu pour ne pas rester au milieu de l'image. Au retour sur le PC, il revient là où il était.", "GameProfilesCard": "Profils par jeu", diff --git a/src/ConsoleMode/Resources/Strings.pt-BR.json b/src/ConsoleMode/Resources/Strings.pt-BR.json index a0c6107..588c4d5 100644 --- a/src/ConsoleMode/Resources/Strings.pt-BR.json +++ b/src/ConsoleMode/Resources/Strings.pt-BR.json @@ -113,6 +113,8 @@ "CloseSteamDescription": "Ao sair do Big Picture, envia o fechamento normal da janela da Steam para ela ir à bandeja, sem encerrar o processo. Se houver um jogo em execução ou não for possível verificar, a janela não é alterada.", "RestoreIconsCard": "Devolver os ícones da área de trabalho ao lugar", "RestoreIconsDescription": "Salva a posição dos ícones antes da sessão e os coloca de volta ao voltar ao PC, caso o Windows os embaralhe ao trocar a tela principal. Não faz nada quando a organização automática dos ícones está ligada.", + "HideIconsCard": "Esconder os ícones da área de trabalho na sessão", + "HideIconsDescription": "Some com os ícones da área de trabalho enquanto a sessão roda, para a TV ficar limpa como num console, e os mostra de novo ao voltar ao PC. Se eles já estavam escondidos, continuam assim.", "ParkPointerCard": "Tirar o ponteiro do mouse do caminho", "ParkPointerDescription": "Quando o iniciador aparece na TV, leva o ponteiro para o canto inferior direito da tela de jogo, para ele não ficar no meio da imagem. Ao voltar ao PC, o ponteiro volta para onde estava.", "GameProfilesCard": "Perfis por jogo", diff --git a/src/ConsoleMode/Resources/Strings.ru-RU.json b/src/ConsoleMode/Resources/Strings.ru-RU.json index 9fd2ca0..95a8375 100644 --- a/src/ConsoleMode/Resources/Strings.ru-RU.json +++ b/src/ConsoleMode/Resources/Strings.ru-RU.json @@ -113,6 +113,8 @@ "CloseSteamDescription": "Когда вы выходите из Big Picture, Steam получает обычный запрос на закрытие окна и может свернуться в область уведомлений, не завершая процесс. Если запущена игра или её состояние не удаётся проверить, окно не трогается.", "RestoreIconsCard": "Возвращать значки рабочего стола на место", "RestoreIconsDescription": "Запоминает расположение значков рабочего стола перед сеансом и возвращает их при возврате к ПК, если Windows перемешает их при смене основного экрана. Ничего не делает, если включено автоматическое упорядочивание.", + "HideIconsCard": "Скрывать значки рабочего стола во время сеанса", + "HideIconsDescription": "Скрывает значки рабочего стола на время сеанса, чтобы телевизор выглядел чисто, как консоль, и показывает их снова при возврате к ПК. Если они уже были скрыты, так и остаётся.", "ParkPointerCard": "Убирать указатель мыши", "ParkPointerDescription": "Когда лаунчер появляется на телевизоре, указатель перемещается в правый нижний угол игрового экрана, чтобы не висеть посреди изображения. При возврате к ПК он возвращается на прежнее место.", "GameProfilesCard": "Профили для игр", diff --git a/src/ConsoleMode/Services/ConsoleEngine.GameProfiles.cs b/src/ConsoleMode/Services/ConsoleEngine.GameProfiles.cs index 55a5986..c24c5f7 100644 --- a/src/ConsoleMode/Services/ConsoleEngine.GameProfiles.cs +++ b/src/ConsoleMode/Services/ConsoleEngine.GameProfiles.cs @@ -85,7 +85,8 @@ private void Apply(SavedDisplayMode? mode, bool? hdr, int? fpsLimit, string? aud if (mode is { Width: > 0, Height: > 0 }) { var current = NativeWindows.GetCurrentDisplayMode(focus); - if (current is null || current.Width != mode.Width || current.Height != mode.Height || current.Frequency != mode.Frequency) + // A TV at @59 for a profile saved at @60 is already there: re-applying would only blank it. + if (current is null || !DisplayModeMatch.IsSame(mode.Width, mode.Height, mode.Frequency, current.Width, current.Height, current.Frequency)) Try("resolução", () => { Monitors.ApplyFocusMode(focus, mode); diff --git a/src/ConsoleMode/Services/ConsoleEngine.cs b/src/ConsoleMode/Services/ConsoleEngine.cs index b23ee27..49733bb 100644 --- a/src/ConsoleMode/Services/ConsoleEngine.cs +++ b/src/ConsoleMode/Services/ConsoleEngine.cs @@ -84,6 +84,10 @@ public void Start(AppConfig config, MonitorInfo? focusInfo, Func