Sergey Lipskiy
aab318b4f7
Fix tile load for BG commands.
2019-02-02 18:34:08 +07:00
Sergey Lipskiy
9ac633d2ea
Add originalMaskT, originalMaskS fields for struct gDPTile.
...
masks and maskt set by gDPSetTile, but _calcTileSizes may change them if actual
tile dimension do not correspond the mask. This creates problem for S2DEX_BG_1Cyc command,
which set tile masks and maskt to maximum, while actual size of loaded tiles may vary.
_calcTileSizes may set new values for masks and maskt, which are valid for the current tile but invalid for next ones.
Thus, original values of tile masks and maskt must be restored when tile size calculated again in _calcTileSizes.
2019-02-02 18:34:08 +07:00
Sergey Lipskiy
fa2b0793e0
Store integer scissor coordinates.
2019-02-02 18:34:08 +07:00
Sergey Lipskiy
0d3c3c151d
Correct reject box implementation: add special flag for it in gDP.changed flags.
...
Fixed Rejection process issues #1954
2018-12-09 16:49:23 +07:00
Sergey Lipskiy
5e1c8a6b58
Do not use clearDepthBuffer in FillRect. Use drawRect only.
2018-09-24 22:02:25 +07:00
Sergey Lipskiy
737338ca20
Use fixed point calculation for texrect s and t coordinates.
...
It is impossible to handle integer overflow when coordinates in float format.
Fixed textures in Major League Baseball #146
2017-11-18 15:41:18 +07:00
Sergey Lipskiy
77ffe6106e
Split othermode::textureConvert on 3 bits.
2017-10-31 13:27:34 +07:00
Sergey Lipskiy
70c540b073
Rewrite fix for #1539 : keep in tile descriptor start address of frame buffer, not pointer on it.
...
Should be more safe.
2017-09-29 22:25:56 +07:00
Sergey Lipskiy
81cc0854dc
Fix blending when CLR_ON_CVG flag is on.
...
Remove hack for Pilot Wings.
2017-09-21 23:18:35 +07:00
Sergey Lipskiy
c907c3013a
Implement Debugger.
2017-06-25 15:35:48 +07:00
Sergey Lipskiy
eebdd32932
Replace rectAttrib::color by uniform.
2017-02-28 15:48:14 +07:00
Sergey Lipskiy
e2f95085dd
Code cleanup: remove unised field from struct colorImage.
2017-02-27 21:02:04 +07:00
Sergey Lipskiy
39da91bb93
Move gDPFillRDRAM to FrameBufferList::fillRDRAM
...
Correct FrameBuffer::isValid()
Code cleanup.
Fixed Mickey Speedway USA is broken again. #1132
2016-09-27 21:43:28 +07:00
Sergey Lipskiy
5efd89ccd2
Fix input texture checksum calculation.
2016-07-03 00:09:26 +06:00
Sergey Lipskiy
638e8791fc
Correct scissor for TexrectDrawer.
2016-06-03 10:44:23 +06:00
Sergey Lipskiy
c095fea58a
Code refactor: replace gDPTextureRectangleFlip by flip parameter in gDPTextureRectangle
2016-04-14 13:21:06 +06:00
Sergey Lipskiy
024c48218a
Fix frame buffer texture detection when load tile is not 7.
...
Fixed wrong frame buffer detection in Tetrispere intro, issue #681
Terisphere uses tile 2 as load-tile and as base tile.
2016-03-05 17:55:30 +06:00
Sergey Lipskiy
b219997c80
Always show cfb until first dlist:
...
- move flag CHANGED_CPU_FB_WRITE from gSP to gDP (code refactor)
- enable CHANGED_CPU_FB_WRITE on video init.
- disable CHANGED_CPU_FB_WRITE in process display list.
many pd roms and demos use cpu rendering only
now they are supported with default settings
also detectCFB=1 now isn't needed anymore for some games
Commit is based on changes made by purplemarshmallow in #536
2015-05-18 12:55:42 +06:00
Sergey Lipskiy
db9943a7b9
Code refactor: move flag CHANGED_COLORBUFFER from gSP to gDP.
2015-05-18 12:35:48 +06:00
Sergey Lipskiy
b56ca89553
Code cleanup: remove unused TEXTUREMODE_TEXRECT
2015-05-13 10:21:48 +06:00
Sergey Lipskiy
52d68d1389
Move all sources to src folder.
2015-05-13 10:21:32 +06:00