@@ -1040,7 +1040,39 @@ void FrameMan::DrawScreenFlash(int playerScreen, BITMAP* playerGUIBitmap) {
1040
1040
if (m_FlashedLastFrame[playerScreen]) {
1041
1041
m_FlashedLastFrame[playerScreen] = false ;
1042
1042
} else {
1043
- rectfill (playerGUIBitmap, 0 , 0 , playerGUIBitmap->w , playerGUIBitmap->h , m_FlashScreenColor[playerScreen]);
1043
+ rlZDepth (c_GuiDepth);
1044
+ rlBegin (RL_QUADS);
1045
+
1046
+ rlColor4ub (m_FlashScreenColor[playerScreen], 0 , 0 , 50 );
1047
+ rlVertex2f (playerGUIBitmap->w * .25f , playerGUIBitmap->h * .25f );
1048
+ rlVertex2f (playerGUIBitmap->w - playerGUIBitmap->w * .25f , playerGUIBitmap->h *0 .25f );
1049
+ rlColor4ub (m_FlashScreenColor[playerScreen], 0 , 0 , 255 );
1050
+ rlVertex2f (playerGUIBitmap->w , 0 .0f );
1051
+ rlVertex2f (0 .0f , 0 .0f );
1052
+
1053
+ rlColor4ub (m_FlashScreenColor[playerScreen], 0 , 0 , 50 );
1054
+ rlVertex2f (playerGUIBitmap->w * .25f , playerGUIBitmap->h - playerGUIBitmap->h * .25f );
1055
+ rlVertex2f (playerGUIBitmap->w * .25f , playerGUIBitmap->h *0 .25f );
1056
+ rlColor4ub (m_FlashScreenColor[playerScreen], 0 , 0 , 255 );
1057
+ rlVertex2f (0 .0f , 0 .0f );
1058
+ rlVertex2f (0 .0f , playerGUIBitmap->h );
1059
+
1060
+ rlColor4ub (m_FlashScreenColor[playerScreen], 0 , 0 , 50 );
1061
+ rlVertex2f (playerGUIBitmap->w - playerGUIBitmap->w * .25f , playerGUIBitmap->h - playerGUIBitmap->h * .25f );
1062
+ rlVertex2f (playerGUIBitmap->w * .25f , playerGUIBitmap->h - playerGUIBitmap->h * .25f );
1063
+ rlColor4ub (m_FlashScreenColor[playerScreen], 0 , 0 , 255 );
1064
+ rlVertex2f (0 .0f , playerGUIBitmap->h );
1065
+ rlVertex2f (playerGUIBitmap->w , playerGUIBitmap->h );
1066
+
1067
+ rlColor4ub (m_FlashScreenColor[playerScreen], 0 , 0 , 50 );
1068
+ rlVertex2f (playerGUIBitmap->w - playerGUIBitmap->w * .25f , playerGUIBitmap->h * .25f );
1069
+ rlVertex2f (playerGUIBitmap->w - playerGUIBitmap->w * .25f , playerGUIBitmap->h - playerGUIBitmap->h * .25f );
1070
+ rlColor4ub (m_FlashScreenColor[playerScreen], 0 , 0 , 255 );
1071
+ rlVertex2f (playerGUIBitmap->w , playerGUIBitmap->h );
1072
+ rlVertex2f (playerGUIBitmap->w , 0 .0f );
1073
+
1074
+ rlEnd ();
1075
+ rlZDepth (c_DefaultDrawDepth);
1044
1076
m_FlashedLastFrame[playerScreen] = true ;
1045
1077
}
1046
1078
}
0 commit comments