~ubuntu-branches/ubuntu/trusty/mupen64plus-video-rice/trusty

« back to all changes in this revision

Viewing changes to src/RSP_GBI_Sprite2D.h

  • Committer: Package Import Robot
  • Author(s): Sven Eckelmann
  • Date: 2013-07-05 22:53:25 UTC
  • mfrom: (1.2.2) (3.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20130705225325-k0fbb2m44xnrju66
Tags: 2.0-1
* New Upstream Version
* Upload to unstable
* debian/control:
  - Build-Depend on debhelper 9.20130604 for support of parameters when
    detecting targets in dh_auto_*
* debian/rules:
  - Work around new debhelper 9.20130624 dh_auto_{clean,test} behavior
    which is causing a FTBFS by adding an explicit
    override_dh_auto_{clean,test} rule
* debian/watch:
  - Verify new upstream versions using GPG key 954F81B094AA5BB226F5

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
void RSP_GBI_Sprite2DBase(Gfx *gfx)
28
28
{
29
 
    
30
 
    
31
 
 
32
29
    uint32 dwAddr = RSPSegmentAddr((gfx->words.w1));
33
30
    dwAddr &= (g_dwRamSize-1);
34
31
 
66
63
 
67
64
void RSP_GBI_Sprite2D_PuzzleMaster64(Gfx *gfx)
68
65
{
69
 
    
70
 
    
71
 
 
72
66
    uint32 dwAddr = RSPSegmentAddr((gfx->words.w1));
73
67
    dwAddr &= (g_dwRamSize-1);
74
68
 
100
94
 
101
95
void RSP_GBI1_Sprite2DDraw(Gfx *gfx)
102
96
{
103
 
    
104
 
    
105
 
 
106
97
    // This ucode is shared by PopMtx and gSPSprite2DDraw
107
98
    g_Sprite2DInfo.px = (short)(((gfx->words.w1)>>16)&0xFFFF)/4;
108
99
    g_Sprite2DInfo.py = (short)((gfx->words.w1)&0xFFFF)/4;
120
111
 
121
112
void RSP_GBI0_Sprite2DDraw(Gfx *gfx)
122
113
{
123
 
    
124
 
    
125
 
 
126
114
    // This ucode is shared by PopMtx and gSPSprite2DDraw
127
115
    g_Sprite2DInfo.px = (short)(((gfx->words.w1)>>16)&0xFFFF)/4;
128
116
    g_Sprite2DInfo.py = (short)((gfx->words.w1)&0xFFFF)/4;
135
123
 
136
124
void RSP_GBI1_Sprite2DScaleFlip(Gfx *gfx)
137
125
{
138
 
 
139
 
    
140
 
 
141
126
    g_Sprite2DInfo.scaleX = (((gfx->words.w1)>>16)&0xFFFF)/1024.0f;
142
127
    g_Sprite2DInfo.scaleY = ((gfx->words.w1)&0xFFFF)/1024.0f;
143
128
 
155
140
}
156
141
 
157
142
 
158
 
 
159
143
void RSP_GBI1_Sprite2DBase(Gfx *gfx)
160
144
{
161
 
    
162
 
    
163
 
 
164
145
    if( !status.bUseModifiedUcodeMap )
165
146
    {
166
147
        memcpy( &LoadedUcodeMap, &ucodeMap1, sizeof(UcodeMap));
176
157
}
177
158
 
178
159
 
179
 
 
180
160
void RSP_GBI0_Sprite2DBase(Gfx *gfx)
181
161
{
182
 
    
183
 
    
184
 
 
185
162
    //Weired, this ucode 0 game is using ucode 1, but sprite2D cmd is working differently from
186
163
    //normal ucode1 sprite2D game
187
164