https://git.reactos.org/?p=reactos.git;a=commitdiff;h=df9c3de5ba8e62e867ec0…
commit df9c3de5ba8e62e867ec0c89cbea84f98fefbae9
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sat Sep 2 21:44:21 2023 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Sep 2 21:53:08 2023 +0200
[DXDIAG] Remove a "redundant" GetTimeZoneInformation() call.
Indeed, the next SystemTimeToTzSpecificLocalTime() call, when done with
a NULL TIME_ZONE_INFORMATION* 1st parameter, uses the currently active
time zone, which is exactly what the GetTimeZoneInformation() call was
doing.
And note that the original code was incorrectly validating the returned
value from GetTimeZoneInformation() -- the code was assuming the function
returns a boolean, instead of checking for TIME_ZONE_ID_INVALID.
---
base/applications/dxdiag/display.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/base/applications/dxdiag/display.c b/base/applications/dxdiag/display.c
index eae055589f4..14228720d23 100644
--- a/base/applications/dxdiag/display.c
+++ b/base/applications/dxdiag/display.c
@@ -18,7 +18,6 @@ GetFileModifyTime(LPCWSTR pFullPath, WCHAR * szTime, int szTimeSize)
FILETIME AccessTime;
SYSTEMTIME SysTime, LocalTime;
UINT Length;
- TIME_ZONE_INFORMATION TimeInfo;
hFile = CreateFileW(pFullPath, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL);
if (!hFile)
@@ -31,13 +30,10 @@ GetFileModifyTime(LPCWSTR pFullPath, WCHAR * szTime, int szTimeSize)
}
CloseHandle(hFile);
- if(!GetTimeZoneInformation(&TimeInfo))
- return FALSE;
-
if (!FileTimeToSystemTime(&AccessTime, &SysTime))
return FALSE;
- if (!SystemTimeToTzSpecificLocalTime(&TimeInfo, &SysTime, &LocalTime))
+ if (!SystemTimeToTzSpecificLocalTime(NULL, &SysTime, &LocalTime))
return FALSE;
Length = GetDateFormatW(LOCALE_USER_DEFAULT, DATE_SHORTDATE, &LocalTime, NULL, szTime, szTimeSize);
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8a0e45031e4743a181533…
commit 8a0e45031e4743a181533a1d001b0df7f407234f
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sat Sep 2 17:25:47 2023 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Sep 2 21:53:07 2023 +0200
[BOOTDATA] Fix Standard Time description for "Mountain Standard Time (Mexico)"
CORE-11855
It was erroneously forgotten while making the timezone names translatable
in commit f25d0ce42 (r74415).
---
boot/bootdata/hivesft.inf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boot/bootdata/hivesft.inf b/boot/bootdata/hivesft.inf
index dc9903f7d34..e45880375de 100644
--- a/boot/bootdata/hivesft.inf
+++ b/boot/bootdata/hivesft.inf
@@ -799,7 +799,7 @@ HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Mountain Standard
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Mountain Standard Time (Mexico)","Display",0x00000000,%GMT_MINUS_07_B_DESC%
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Mountain Standard Time (Mexico)","Dlt",0x00000000,%GMT_MINUS_07_B_DAYLIGHT%
-HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Mountain Standard Time (Mexico)","Std",0x00000000,
+HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Mountain Standard Time (Mexico)","Std",0x00000000,%GMT_MINUS_07_B_STANDARD%
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Mountain Standard Time (Mexico)","Index",0x00010001,13
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Mountain Standard Time (Mexico)","TZI",0x00000001,\
0xa4,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0xc4,0xff,0xff,0xff,\
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f86fdfb526acb4fe86783…
commit f86fdfb526acb4fe867837399556a0859c6ca915
Author: Andrei Miloiu <miloiuandrei(a)gmail.com>
AuthorDate: Sat Sep 2 16:43:38 2023 +0300
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Sep 2 15:43:38 2023 +0200
[MSGINA] Update Romanian (ro-RO) translation (#5636)
---
dll/win32/msgina/lang/ro-RO.rc | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dll/win32/msgina/lang/ro-RO.rc b/dll/win32/msgina/lang/ro-RO.rc
index cfbc268afd6..c5b896fa831 100644
--- a/dll/win32/msgina/lang/ro-RO.rc
+++ b/dll/win32/msgina/lang/ro-RO.rc
@@ -4,7 +4,7 @@
* PURPOSE: Romanian resource file
* TRANSLATORS: Copyright 2009 Petru Dimitriu <petrimetri(a)gmail.com>
* Copyright 2011-2019 Ștefan Fulea <stefan.fulea(a)mail.com>
- * Copyright 2022 Andrei Miloiu <miloiuandrei(a)gmail.com>
+ * Copyright 2022-2023 Andrei Miloiu <miloiuandrei(a)gmail.com>
*/
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
@@ -243,10 +243,10 @@ BEGIN
IDS_INVALIDLOGONHOURS "Contul dumneavoastră are restricții de timp care vă împiedică să vă conectați în acest moment. Încercați mai târziu."
IDS_INVALIDWORKSTATION "Contul dumneavoastră este configurat pentru a vă preveni în a folosi acest calculator. Încercați la alt calculator."
IDS_ACCOUNTRESTRICTION "Eșec în conectarea dumneavoastră din cauza unei restricții a contului."
- IDS_EMERGENCYLOGOFFTITLE "Log Off ReactOS"
- IDS_EMERGENCYLOGOFF "Click OK to immediately log off. Any unsaved data will be lost. Use this only as a last resort."
- IDS_EMERGENCYRESTARTTITLE "Emergency restart"
- IDS_EMERGENCYRESTART "Click OK to immediately restart. Any unsaved data will be lost. Use this only as a last resort."
+ IDS_EMERGENCYLOGOFFTITLE "Deautentificare din ReactOS"
+ IDS_EMERGENCYLOGOFF "Apăsați Confirmă pentru a vă deautentifica imediat. Toate datele nepăstrate vor fi pierdute. Folosiți acest lucru doar ca ultimă soluție."
+ IDS_EMERGENCYRESTARTTITLE "Repornire de urgență"
+ IDS_EMERGENCYRESTART "Apăsați Confirmă pentru a vă reporni calculatorul imediat. Toate datele nepăstrate vor fi pierdute. Folosiți acest lucru doar ca ultimă soluție."
END
/* Shutdown Dialog Strings */
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ed134bf2afefb52ea4786…
commit ed134bf2afefb52ea4786d16a74c54630f60911f
Author: Ethan Rodensky <splitwirez(a)gmail.com>
AuthorDate: Tue Aug 8 17:25:54 2023 -0400
Commit: Stanislav Motylkov <x86corez(a)gmail.com>
CommitDate: Thu Aug 31 20:42:15 2023 +0300
[THEMES] Add PNG Start button to Lautus style (#5540)
Use a PNG image with alpha channel transparency for the Start button when
compiling Lautus as Vista+ visual style. This serves both as a test case,
and improves appearance when using the taskbar with large icons.
---
media/themes/Lautus/lautus.msstyles/CMakeLists.txt | 4 ++++
.../lautus.msstyles/bitmaps/NORMAL_STARTBUTTON.pdn | Bin 0 -> 15973 bytes
.../lautus.msstyles/bitmaps/NORMAL_STARTBUTTON.png | Bin 0 -> 2341 bytes
media/themes/Lautus/lautus.msstyles/lautus.rc | 14 ++++++++++++++
4 files changed, 18 insertions(+)
diff --git a/media/themes/Lautus/lautus.msstyles/CMakeLists.txt b/media/themes/Lautus/lautus.msstyles/CMakeLists.txt
index 0f0971f9c55..e5e0565514c 100644
--- a/media/themes/Lautus/lautus.msstyles/CMakeLists.txt
+++ b/media/themes/Lautus/lautus.msstyles/CMakeLists.txt
@@ -1,4 +1,8 @@
+if(DLL_EXPORT_VERSION GREATER_EQUAL 0x600)
+ add_definitions(-DUSE_PNG_IMAGES)
+endif()
+
list(APPEND TEXTFILES
textfiles/ExtraLargeNormal.INI
textfiles/LargeFontsNormal.INI
diff --git a/media/themes/Lautus/lautus.msstyles/bitmaps/NORMAL_STARTBUTTON.pdn b/media/themes/Lautus/lautus.msstyles/bitmaps/NORMAL_STARTBUTTON.pdn
new file mode 100644
index 00000000000..2beafa31ff4
Binary files /dev/null and b/media/themes/Lautus/lautus.msstyles/bitmaps/NORMAL_STARTBUTTON.pdn differ
diff --git a/media/themes/Lautus/lautus.msstyles/bitmaps/NORMAL_STARTBUTTON.png b/media/themes/Lautus/lautus.msstyles/bitmaps/NORMAL_STARTBUTTON.png
new file mode 100644
index 00000000000..5508ccbc79f
Binary files /dev/null and b/media/themes/Lautus/lautus.msstyles/bitmaps/NORMAL_STARTBUTTON.png differ
diff --git a/media/themes/Lautus/lautus.msstyles/lautus.rc b/media/themes/Lautus/lautus.msstyles/lautus.rc
index dc5cdb7ddb1..ac5886e2929 100644
--- a/media/themes/Lautus/lautus.msstyles/lautus.rc
+++ b/media/themes/Lautus/lautus.msstyles/lautus.rc
@@ -92,7 +92,21 @@ NORMAL_SPINDOWNGLYPH_BMP BITMAP "bitmaps/NORMAL_SPINDOWNGLYPH.bmp"
NORMAL_SPINLEFTGLYPH_BMP BITMAP "bitmaps/NORMAL_SPINLEFTGLYPH.bmp"
NORMAL_SPINRIGHTGLYPH_BMP BITMAP "bitmaps/NORMAL_SPINRIGHTGLYPH.bmp"
NORMAL_SPINUPGLYPH_BMP BITMAP "bitmaps/NORMAL_SPINUPGLYPH.bmp"
+#ifdef USE_PNG_IMAGES
+/* Resource ID ends in "BMP" both for BMP and PNG versions of this resource. This was
+ * done to keep the ImageFile paths the same, thus allowing the same INI file to be
+ * used to compile with or without using PNG resources. This is a workaround, and
+ * resource IDs ending with "PNG" do work and are preferable.
+ *
+ * This workaround is needed because preprocessor definitions only apply to code files.
+ * As more PNG resources are used, it might be best to some form of compile-time INI
+ * processing/generation, e.g. to conditionally assemble the final file from separate
+ * parts or something. This is far from a first priority task, though.
+ */
+NORMAL_STARTBUTTON_BMP IMAGE "bitmaps/NORMAL_STARTBUTTON.png"
+#else
NORMAL_STARTBUTTON_BMP BITMAP "bitmaps/NORMAL_STARTBUTTON.bmp"
+#endif /* USE_PNG_IMAGES */
NORMAL_STARTGROUPBACKGROUND_BMP BITMAP "bitmaps/NORMAL_STARTGROUPBACKGROUND.bmp"
NORMAL_STARTGROUPNEWAPPBUTTON_BMP BITMAP "bitmaps/NORMAL_STARTGROUPNEWAPPBUTTON.bmp"
NORMAL_STARTGROUPSEPERATOR_BMP BITMAP "bitmaps/NORMAL_STARTGROUPSEPERATOR.bmp"