MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Mamesick
Troll Lamer
Reged: 09/21/03
Posts: 1649
Loc: Italy
Send PM
Re: Vector game HLSL trouble last couple days
04/15/16 09:31 AM


> I haven't compiled for a few days so I can't verify right at the moment.
>
> The only change since 0.172 released was this
>
> Do you get the same result without using any artwork?

I'm not sure but I believe there's something wrong here in the commit which seems to be the cause of wrong rotation swapping with vectors: (osd\osd_window.h)


Code:

 		bool rotation_swap_xy =
- (target()->orientation() & ROT90) == ROT90 ||
- (target()->orientation() & ROT270) == ROT270;
+ (target()->orientation() & ORIENTATION_SWAP_XY) == ORIENTATION_SWAP_XY;



since they are defined as: (emu\emucore.h)

Code:

// orientation of bitmaps
#define ORIENTATION_FLIP_X 0x0001 /* mirror everything in the X direction */
#define ORIENTATION_FLIP_Y 0x0002 /* mirror everything in the Y direction */
#define ORIENTATION_SWAP_XY 0x0004 /* mirror along the top-left/bottom-right diagonal */

#define ROT0 0
#define ROT90 (ORIENTATION_SWAP_XY | ORIENTATION_FLIP_X) /* rotate clockwise 90 degrees */
#define ROT180 (ORIENTATION_FLIP_X | ORIENTATION_FLIP_Y) /* rotate 180 degrees */
#define ROT270 (ORIENTATION_SWAP_XY | ORIENTATION_FLIP_Y) /* rotate counter-clockwise 90 degrees */


Jezze perhaps could answer. I could be wrong.







Entire thread
Subject Posted by Posted on
* Vector game HLSL trouble last couple days John IV 04/15/16 05:29 AM
. * Re: Vector game HLSL trouble last couple days Jezze  04/16/16 03:52 PM
. * Re: Vector game HLSL trouble last couple days John IV  04/17/16 02:56 AM
. * Re: Vector game HLSL trouble last couple days B2K24  04/15/16 06:07 AM
. * Re: Vector game HLSL trouble last couple days Mamesick  04/15/16 09:31 AM
. * Re: Vector game HLSL trouble last couple days John IV  04/15/16 06:22 AM
. * Re: Vector game HLSL trouble last couple days uman  04/15/16 08:21 AM
. * Re: Vector game HLSL trouble last couple days John IV  04/15/16 08:31 AM
. * Re: Vector game HLSL trouble last couple days TafoidAdministrator  04/15/16 01:58 PM
. * Re: Vector game HLSL trouble last couple days Jezze  04/15/16 02:40 PM
. * Re: Vector game HLSL trouble last couple days John IV  04/15/16 07:23 PM
. * Re: Vector game HLSL trouble last couple days Envisaged0ne  04/15/16 08:49 PM
. * Re: Vector game HLSL trouble last couple days CiroConsentino  04/15/16 05:40 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 388 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2770