Просмотр исходного кода

Patch for RSX. If both EMX_VIDEO and WIN32 are defined, write attributes
correctly.
RSX support is almost complete now.

Pavel Machek 27 лет назад
Родитель
Сommit
2565113b86
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      slang/slvideo.c

+ 1 - 1
slang/slvideo.c

@@ -1035,7 +1035,7 @@ static void write_attributes (unsigned short *src, int count)
 # if defined (HAS_LINEAR_SCREEN)
 # if defined (HAS_LINEAR_SCREEN)
 	*(pos++) = ((unsigned short) Attribute_Byte << 8) | pair & 0xff;
 	*(pos++) = ((unsigned short) Attribute_Byte << 8) | pair & 0xff;
 # else
 # else
-#  ifndef WIN32
+#  if defined(EMX_VIDEO) || !defined(WIN32)
 	*(p++) = pair & 0xff;		/* character byte */
 	*(p++) = pair & 0xff;		/* character byte */
 	*(p++) = Attribute_Byte;	/* attribute byte */
 	*(p++) = Attribute_Byte;	/* attribute byte */
 #  else
 #  else