Author: hbelusca
Date: Fri Mar 6 02:16:00 2015
New Revision: 66584
URL:
http://svn.reactos.org/svn/reactos?rev=66584&view=rev
Log:
[MSTSC]: Add support for 32-bit colour. Patch by 'hater'.
CORE-9322 #resolve #comment Committed in r66584, thanks!
Modified:
trunk/reactos/base/applications/mstsc/bsops.c
trunk/reactos/base/applications/mstsc/connectdialog.c
trunk/reactos/base/applications/mstsc/lang/bg-BG.rc
trunk/reactos/base/applications/mstsc/lang/ca-ES.rc
trunk/reactos/base/applications/mstsc/lang/cs-CZ.rc
trunk/reactos/base/applications/mstsc/lang/de-DE.rc
trunk/reactos/base/applications/mstsc/lang/el-GR.rc
trunk/reactos/base/applications/mstsc/lang/en-US.rc
trunk/reactos/base/applications/mstsc/lang/es-ES.rc
trunk/reactos/base/applications/mstsc/lang/fr-FR.rc
trunk/reactos/base/applications/mstsc/lang/he-IL.rc
trunk/reactos/base/applications/mstsc/lang/it-IT.rc
trunk/reactos/base/applications/mstsc/lang/ja-JP.rc
trunk/reactos/base/applications/mstsc/lang/ko-KR.rc
trunk/reactos/base/applications/mstsc/lang/lt-LT.rc
trunk/reactos/base/applications/mstsc/lang/no-NO.rc
trunk/reactos/base/applications/mstsc/lang/pl-PL.rc
trunk/reactos/base/applications/mstsc/lang/ro-RO.rc
trunk/reactos/base/applications/mstsc/lang/ru-RU.rc
trunk/reactos/base/applications/mstsc/lang/sk-SK.rc
trunk/reactos/base/applications/mstsc/lang/sq-AL.rc
trunk/reactos/base/applications/mstsc/lang/sv-SE.rc
trunk/reactos/base/applications/mstsc/lang/tr-TR.rc
trunk/reactos/base/applications/mstsc/lang/uk-UA.rc
trunk/reactos/base/applications/mstsc/lang/zh-CN.rc
trunk/reactos/base/applications/mstsc/lang/zh-TW.rc
trunk/reactos/base/applications/mstsc/resource.h
trunk/reactos/base/applications/mstsc/uimain.c
trunk/reactos/base/applications/mstsc/win32.c
Modified: trunk/reactos/base/applications/mstsc/bsops.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/bs…
==============================================================================
--- trunk/reactos/base/applications/mstsc/bsops.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/bsops.c [iso-8859-1] Fri Mar 6 02:16:00 2015
@@ -228,13 +228,7 @@
return data[(y * 2) * width + (x * 2)] != 0 ||
data[(y * 2) * width + (x * 2) + 1] != 0;
}
- else if (bpp == 24)
- {
- return data[(y * 3) * width + (x * 3)] != 0 ||
- data[(y * 3) * width + (x * 3) + 1] != 0 ||
- data[(y * 3) * width + (x * 3) + 2] != 0;
- }
- else if (bpp == 32)
+ else if (bpp == 24 || bpp == 32)
{
return data[(y * 4) * width + (x * 4)] != 0 ||
data[(y * 4) * width + (x * 4) + 1] != 0 ||
@@ -276,6 +270,10 @@
else if (bpp == 15 || bpp == 16)
{
((unsigned short *) data)[y * width + x] = pixel;
+ }
+ else if (bpp == 24 || bpp == 32)
+ {
+ ((unsigned int *) data)[y * width + x] = (unsigned int) pixel;
}
}
Modified: trunk/reactos/base/applications/mstsc/connectdialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/co…
==============================================================================
--- trunk/reactos/base/applications/mstsc/connectdialog.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/connectdialog.c [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -669,7 +669,7 @@
PSETTINGS_ENTRY Current;
DWORD index, i, num;
DWORD MaxBpp = 0;
- UINT types[4];
+ UINT types[5];
pInfo->CurrentDisplayDevice = pInfo->DisplayDeviceList; /* Update global
variable */
@@ -686,10 +686,11 @@
}
switch (MaxBpp)
{
- case 32:
- case 24: num = 4; break;
- case 16: num = 3; break;
- case 8: num = 1; break;
+ case 32: num = 4; break;
+ case 24: num = 3; break;
+ case 16: num = 2; break;
+ case 15: num = 1; break;
+ case 8: num = 0; break;
default: num = 0; break;
}
@@ -697,6 +698,7 @@
types[1] = IDS_HIGHCOLOR15;
types[2] = IDS_HIGHCOLOR16;
types[3] = IDS_HIGHCOLOR24;
+ types[4] = IDS_HIGHCOLOR32;
/* Fill color depths combo box */
SendDlgItemMessageW(pInfo->hDisplayPage,
Modified: trunk/reactos/base/applications/mstsc/lang/bg-BG.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/bg-BG.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/bg-BG.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -55,6 +55,7 @@
IDS_HIGHCOLOR15 "ÐиÑока ÑвеÑноÑÑ (15 ÑазÑÑда)"
IDS_HIGHCOLOR16 "ÐиÑока ÑвеÑноÑÑ (16 ÑазÑÑда)"
IDS_HIGHCOLOR24 "ÐÑÑинÑка ÑвеÑноÑÑ (24 ÑазÑÑда)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu ÑоÑки"
IDS_FULLSCREEN "ЦÑл екÑан"
IDS_BROWSESERVER "<ÐÐ±Ð·Ð¾Ñ Ð·Ð° оÑе...>"
Modified: trunk/reactos/base/applications/mstsc/lang/ca-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/ca-ES.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/ca-ES.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -55,6 +55,7 @@
IDS_HIGHCOLOR15 "32,768 Colors (15 bit)"
IDS_HIGHCOLOR16 "65,536 Colors (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 Colors (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu Pixels"
IDS_FULLSCREEN "Pantalla Complerta"
IDS_BROWSESERVER "<Navega per més...>"
Modified: trunk/reactos/base/applications/mstsc/lang/cs-CZ.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/cs-CZ.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/cs-CZ.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -55,6 +55,7 @@
IDS_HIGHCOLOR15 "32,768 Barev (15 bit)"
IDS_HIGHCOLOR16 "65,536 Barev (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 Barev (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu Pixelů"
IDS_FULLSCREEN "Celá obrazovka"
IDS_BROWSESERVER "<NajÃt dalÅ¡Ã...>"
Modified: trunk/reactos/base/applications/mstsc/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/de-DE.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/de-DE.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -55,6 +55,7 @@
IDS_HIGHCOLOR15 "32,768 Farben (15 bit)"
IDS_HIGHCOLOR16 "65,536 Farben (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 Farben (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu Pixel"
IDS_FULLSCREEN "Vollbild"
IDS_BROWSESERVER "<Nach mehr suchen...>"
Modified: trunk/reactos/base/applications/mstsc/lang/el-GR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/el-GR.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/el-GR.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -55,6 +55,7 @@
IDS_HIGHCOLOR15 "32,768 ÏÏÏμαÏα (15 bit)"
IDS_HIGHCOLOR16 "65,536 ÏÏÏμαÏα (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 ÏÏÏμαÏα (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu Pixels"
IDS_FULLSCREEN "ΠλήÏÎ·Ï Î¿Î¸Ïνη"
IDS_BROWSESERVER "<ÎναζήÏηÏη για
ÏεÏιÏÏÏÏεÏα...>"
Modified: trunk/reactos/base/applications/mstsc/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/en-US.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/en-US.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -52,9 +52,10 @@
IDS_TAB_GENERAL "General"
IDS_TAB_DISPLAY "Display"
IDS_256COLORS "256 Colors"
- IDS_HIGHCOLOR15 "32,768 Colors (15 bit)"
- IDS_HIGHCOLOR16 "65,536 Colors (16 bit)"
- IDS_HIGHCOLOR24 "16,777,216 Colors (24 bit)"
+ IDS_HIGHCOLOR15 "High Color (15 bit)"
+ IDS_HIGHCOLOR16 "High Color (16 bit)"
+ IDS_HIGHCOLOR24 "True Color (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu Pixels"
IDS_FULLSCREEN "Full Screen"
IDS_BROWSESERVER "<Browse for more...>"
Modified: trunk/reactos/base/applications/mstsc/lang/es-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/es-ES.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/es-ES.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -57,6 +57,7 @@
IDS_HIGHCOLOR15 "32,768 colores (15 bit)"
IDS_HIGHCOLOR16 "65,536 colores (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 colores (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu pÃxeles"
IDS_FULLSCREEN "Pantalla completa"
IDS_BROWSESERVER "<Buscar más...>"
Modified: trunk/reactos/base/applications/mstsc/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/fr-FR.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/fr-FR.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -55,6 +55,7 @@
IDS_HIGHCOLOR15 "32,768 Couleurs (15 bit)"
IDS_HIGHCOLOR16 "65,536 Couleurs (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 Couleurs (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu Pixels"
IDS_FULLSCREEN "Plein écran"
IDS_BROWSESERVER "<Parcourir pour plus...>"
Modified: trunk/reactos/base/applications/mstsc/lang/he-IL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/he-IL.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/he-IL.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -55,6 +55,7 @@
IDS_HIGHCOLOR15 "32,768 צ××¢×× (15 ס××××ת)"
IDS_HIGHCOLOR16 "65,536 צ××¢×× (16 ס××××ת)"
IDS_HIGHCOLOR24 "16,777,216 צ××¢×× (24 ס××××ת)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu פ×קס×××"
IDS_FULLSCREEN "××¡× ×××"
IDS_BROWSESERVER "<Browse for more...>"
Modified: trunk/reactos/base/applications/mstsc/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/it-IT.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/it-IT.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -55,6 +55,7 @@
IDS_HIGHCOLOR15 "32,768 colori (15 bit)"
IDS_HIGHCOLOR16 "65.536 colori (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 colori (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu Pixel"
IDS_FULLSCREEN "Schermo Intero"
IDS_BROWSESERVER "<Cerca...>"
Modified: trunk/reactos/base/applications/mstsc/lang/ja-JP.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/ja-JP.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/ja-JP.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -55,6 +55,7 @@
IDS_HIGHCOLOR15 "32,768 è² (15 ããã)"
IDS_HIGHCOLOR16 "65,536 è² (16 ããã)"
IDS_HIGHCOLOR24 "16,777,216 è² (24 ããã)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lu x %lu ãã¯ã»ã«"
IDS_FULLSCREEN "å
¨ç»é¢è¡¨ç¤º"
IDS_BROWSESERVER "<åç
§...>"
Modified: trunk/reactos/base/applications/mstsc/lang/ko-KR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/ko-KR.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/ko-KR.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -57,6 +57,7 @@
IDS_HIGHCOLOR15 "32,768 ì (15 ë¹í¸)"
IDS_HIGHCOLOR16 "65,536 ì (16 ë¹í¸)"
IDS_HIGHCOLOR24 "16,777,216 ì (24 ë¹í¸)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu í½ì
"
IDS_FULLSCREEN "ìµë íë©´"
IDS_BROWSESERVER "<ë ë§ì´...>"
Modified: trunk/reactos/base/applications/mstsc/lang/lt-LT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/lt-LT.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/lt-LT.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -57,6 +57,7 @@
IDS_HIGHCOLOR15 "32,768 spalvos (15 bitų)"
IDS_HIGHCOLOR16 "65,536 spalvos (16 bitų)"
IDS_HIGHCOLOR24 "16,777,216 spalvų (24 bitai)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu taškų"
IDS_FULLSCREEN "Visas ekranas"
IDS_BROWSESERVER "<Daugiau...>"
Modified: trunk/reactos/base/applications/mstsc/lang/no-NO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/no-NO.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/no-NO.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -55,6 +55,7 @@
IDS_HIGHCOLOR15 "32,768 Farger (15 bit)"
IDS_HIGHCOLOR16 "65,536 Farger (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 Farger (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu Piksler"
IDS_FULLSCREEN "Full skjerm"
IDS_BROWSESERVER "<Bla gjennom etter flere...>"
Modified: trunk/reactos/base/applications/mstsc/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/pl-PL.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/pl-PL.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -65,6 +65,7 @@
IDS_HIGHCOLOR15 "32,768 kolorów (15 bit)"
IDS_HIGHCOLOR16 "65,536 kolorów (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 kolorów (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu pikseli"
IDS_FULLSCREEN "PeÅny ekran"
IDS_BROWSESERVER "<Wybierz inne...>"
Modified: trunk/reactos/base/applications/mstsc/lang/ro-RO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/ro-RO.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/ro-RO.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -62,6 +62,7 @@
IDS_HIGHCOLOR15 "32,768 culori (15 biÈi)"
IDS_HIGHCOLOR16 "65,536 culori (16 biÈi)"
IDS_HIGHCOLOR24 "16,777,216 culori (24 biÈi)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu pixeli"
IDS_FULLSCREEN "Pe tot ecranul"
IDS_BROWSESERVER "<CÄutare mai multeâ¦>"
Modified: trunk/reactos/base/applications/mstsc/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/ru-RU.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/ru-RU.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -57,6 +57,7 @@
IDS_HIGHCOLOR15 "32,768 ÑвеÑов (15 биÑ)"
IDS_HIGHCOLOR16 "65,536 ÑвеÑов (16 биÑ)"
IDS_HIGHCOLOR24 "16,777,216 ÑвеÑов (24 биÑ)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lu на %lu пикÑелей"
IDS_FULLSCREEN "ÐолнÑй ÑкÑан"
IDS_BROWSESERVER "<УказаÑÑ Ð¿ÑÑÑ...>"
Modified: trunk/reactos/base/applications/mstsc/lang/sk-SK.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/sk-SK.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/sk-SK.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -59,6 +59,7 @@
IDS_HIGHCOLOR15 "32,768 farieb (15 bitov)"
IDS_HIGHCOLOR16 "65,536 farieb (16 bitov)"
IDS_HIGHCOLOR24 "16,777,216 farieb (24 bitov)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu pixelov"
IDS_FULLSCREEN "Celá obrazovka"
IDS_BROWSESERVER "<Prehľadávať pre viac...>"
Modified: trunk/reactos/base/applications/mstsc/lang/sq-AL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/sq-AL.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/sq-AL.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -59,6 +59,7 @@
IDS_HIGHCOLOR15 "32,768 Ngjyra (15 bit)"
IDS_HIGHCOLOR16 "65,536 Ngjyra (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 Ngjyra (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu Pixels"
IDS_FULLSCREEN "Ekran i plote"
IDS_BROWSESERVER "<Shfleto për më shume...>"
Modified: trunk/reactos/base/applications/mstsc/lang/sv-SE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/sv-SE.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/sv-SE.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -62,6 +62,7 @@
IDS_HIGHCOLOR15 "32,768 Färger (15 bit)"
IDS_HIGHCOLOR16 "65,536 Färger (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 Färger (24 bit)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu Pixlar"
IDS_FULLSCREEN "Fullskärm"
IDS_BROWSESERVER "<Bläddra efter fler...>"
Modified: trunk/reactos/base/applications/mstsc/lang/tr-TR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/tr-TR.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/tr-TR.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -57,6 +57,7 @@
IDS_HIGHCOLOR15 "32,768 (15 Bitlik) Renk"
IDS_HIGHCOLOR16 "65,536 (16 Bitlik) Renk"
IDS_HIGHCOLOR24 "16,777,216 (24 Bitlik) Renk"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lu*%lu Nokta"
IDS_FULLSCREEN "Tüm Görüntülük"
IDS_BROWSESERVER "(Daha ÃoÄu İçin Göz At...)"
Modified: trunk/reactos/base/applications/mstsc/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/uk-UA.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/uk-UA.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -63,6 +63,7 @@
IDS_HIGHCOLOR15 "32,768 колÑоÑÑв (15 бÑÑ)"
IDS_HIGHCOLOR16 "65,536 колÑоÑÑв (16 бÑÑ)"
IDS_HIGHCOLOR24 "16,777,216 колÑоÑÑв (24 бÑÑи)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lu на %lu кÑапок"
IDS_FULLSCREEN "Ðа веÑÑ ÐµÐºÑан"
IDS_BROWSESERVER "<ÐоÑÑк ÑнÑиÑ
...>"
Modified: trunk/reactos/base/applications/mstsc/lang/zh-CN.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/zh-CN.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/zh-CN.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -57,6 +57,7 @@
IDS_HIGHCOLOR15 "32,768 è² (15 ä½)"
IDS_HIGHCOLOR16 "65,536 è² (16 ä½)"
IDS_HIGHCOLOR24 "16,777,216 è² (24 ä½)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu åç´ "
IDS_FULLSCREEN "å
¨å±"
IDS_BROWSESERVER "<æµè§æ´å¤...>"
Modified: trunk/reactos/base/applications/mstsc/lang/zh-TW.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/la…
==============================================================================
--- trunk/reactos/base/applications/mstsc/lang/zh-TW.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/lang/zh-TW.rc [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -62,6 +62,7 @@
IDS_HIGHCOLOR15 "32,768 è² (15 ä½å
)"
IDS_HIGHCOLOR16 "65,536 è² (16 ä½å
)"
IDS_HIGHCOLOR24 "16,777,216 è² (24 ä½å
)"
+ IDS_HIGHCOLOR32 "Highest Quality (32 bit)"
IDS_PIXEL "%lux%lu åç´ "
IDS_FULLSCREEN "å
¨å±å¹"
IDS_BROWSESERVER "<ç覽æ´å¤...>"
Modified: trunk/reactos/base/applications/mstsc/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/re…
==============================================================================
--- trunk/reactos/base/applications/mstsc/resource.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/resource.h [iso-8859-1] Fri Mar 6 02:16:00
2015
@@ -6,6 +6,7 @@
#define IDS_HIGHCOLOR15 15
#define IDS_HIGHCOLOR16 16
#define IDS_HIGHCOLOR24 24
+#define IDS_HIGHCOLOR32 32
#define IDD_CONNECTDIALOG 101
#define IDD_GENERAL 105
Modified: trunk/reactos/base/applications/mstsc/uimain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/ui…
==============================================================================
--- trunk/reactos/base/applications/mstsc/uimain.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/uimain.c [iso-8859-1] Fri Mar 6 02:16:00 2015
@@ -38,8 +38,7 @@
RD_BOOL g_bitmap_cache_precache = True;
RD_BOOL g_bitmap_cache = True;
RD_BOOL g_encryption = True;
-int g_server_depth = 8;
-RD_BOOL g_use_rdp5 = False;
+int g_server_depth = 16;
int g_width = 800;
int g_height = 600;
uint32 g_keylayout = 0x409; /* Defaults to US keyboard layout */
Modified: trunk/reactos/base/applications/mstsc/win32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/wi…
==============================================================================
--- trunk/reactos/base/applications/mstsc/win32.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/win32.c [iso-8859-1] Fri Mar 6 02:16:00 2015
@@ -942,6 +942,10 @@
}
}
}
+ else if (g_server_depth == 24 || g_server_depth == 32)
+ {
+ memcpy(bits, data, cx*cy*4);
+ }
dc = CreateCompatibleDC(maindc);
if (dc == 0)
{
@@ -1116,7 +1120,6 @@
strcpy(g_password, "");
strcpy(g_hostname, tcp_get_address());
g_server_depth = GetIntegerFromSettings(pRdpSettings, L"session
bpp");
- if (g_server_depth > 16) g_server_depth = 16; /* hack, we
don't support 24bpp yet */
g_screen_width = GetSystemMetrics(SM_CXSCREEN);
g_screen_height = GetSystemMetrics(SM_CYSCREEN);
g_width = GetIntegerFromSettings(pRdpSettings,
L"desktopwidth");
@@ -1192,11 +1195,11 @@
{
SPLIT_COLOUR16(colour, red, green, blue);
}
- else
- {
- red = 0;
- green = 0;
- blue = 0;
+ else if (g_server_depth == 24 || g_server_depth == 32)
+ {
+ red = (colour>>16)&0xff;
+ green = (colour>>8)&0xff;
+ blue = colour&0xff;
}
maindc = GetWindowDC(g_Wnd);
rgn = mi_clip(maindc);
@@ -1237,11 +1240,11 @@
{
SPLIT_COLOUR16(colour, red, green, blue);
}
- else
- {
- red = 0;
- green = 0;
- blue = 0;
+ else if (g_server_depth == 24 || g_server_depth == 32)
+ {
+ red = (colour>>16)&0xff;
+ green = (colour>>8)&0xff;
+ blue = colour&0xff;
}
maindc = GetWindowDC(g_Wnd);
rgn = mi_clip(maindc);