summaryrefslogtreecommitdiff
path: root/plugins/dfxvideo/draw.c
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-01-06 18:58:43 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-01-06 18:58:43 +0000
commit8370f2a0992997eac58a00d4b83fbacb194604ba (patch)
treeedb892da81d21d314c36d55fea1ce49277ac1726 /plugins/dfxvideo/draw.c
parent5361dd49c582f601dbc5cb5a47a38f65bec9d8d4 (diff)
downloadpcsxr-8370f2a0992997eac58a00d4b83fbacb194604ba.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@61817 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfxvideo/draw.c')
-rw-r--r--plugins/dfxvideo/draw.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/dfxvideo/draw.c b/plugins/dfxvideo/draw.c
index b0b54a56..db90cdf7 100644
--- a/plugins/dfxvideo/draw.c
+++ b/plugins/dfxvideo/draw.c
@@ -1613,6 +1613,15 @@ void DoBufferSwap(void)
if (iMaintainAspect)
MaintainAspect(&dstx, &dsty, &_w, &_h);
+ if(iRumbleTime)
+ {
+ dstx+=((rand()*iRumbleVal)/RAND_MAX)-(iRumbleVal/2);
+ _w-=((rand()*iRumbleVal)/RAND_MAX)-(iRumbleVal);
+ dsty+=((rand()*iRumbleVal)/RAND_MAX)-(iRumbleVal/2);
+ _h-=((rand()*iRumbleVal)/RAND_MAX)-(iRumbleVal/2);
+ iRumbleTime--;
+ }
+
XvShmPutImage(display, xv_port, window, hGC, xvi,
0,0, //src x,y
finalw,finalh, //src w,h
@@ -1621,7 +1630,7 @@ void DoBufferSwap(void)
1
);
- if(ulKeybits&KEY_SHOWFPS) //DisplayText(); // paint menu text
+ if(ulKeybits&KEY_SHOWFPS) //DisplayText(); c // paint menu text
{
if(szDebugText[0] && ((time(NULL) - tStart) < 2))
{