mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
First version of MSAA code added. No UI yet. No CSAA yet. Doesn't work in Zeldas and Metroids for unknown reason.
Automatic texture invalidation when using copy efb to ram (fixes weird flickery scanner in metroid 2). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2617 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
c7a45ecf95
commit
c6ffcec991
12 changed files with 346 additions and 148 deletions
|
@ -104,6 +104,30 @@ struct TRectangle
|
|||
|
||||
int GetWidth() const { return right - left; }
|
||||
int GetHeight() const { return bottom - top; }
|
||||
|
||||
void FlipYPosition(int y_height, TRectangle *dest) const
|
||||
{
|
||||
int offset = y_height - (bottom - top);
|
||||
dest->left = left;
|
||||
dest->top = top + offset;
|
||||
dest->right = right;
|
||||
dest->bottom = bottom + offset;
|
||||
}
|
||||
|
||||
void FlipY(int y_height, TRectangle *dest) const {
|
||||
dest->left = left;
|
||||
dest->right = right;
|
||||
dest->bottom = y_height - bottom;
|
||||
dest->top = y_height - top;
|
||||
}
|
||||
|
||||
void Scale(float factor_x, float factor_y, TRectangle *dest) const
|
||||
{
|
||||
dest->left = (int)(factor_x * left);
|
||||
dest->right = (int)(factor_x * right);
|
||||
dest->top = (int)(factor_y * top);
|
||||
dest->bottom = (int)(factor_y * bottom);
|
||||
}
|
||||
};
|
||||
|
||||
// Logging
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue