Skip to content

Commit

Permalink
Merge branch 'ekeeke:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ds22x authored Jul 28, 2023
2 parents aff2ec1 + ad70604 commit 704da43
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 78 deletions.
1 change: 1 addition & 0 deletions HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ Genesis Plus GX 1.7.5 (xx/xx/xxxx) (Eke-Eke)
* fixed bug with PICO pointer
* fixed lightgun crosshair & CD leds positionning when using NTSC filter
* fixed low-pass filter menu setting
* fixed random PNG snapshots corruption
* various code cleanup & optimizations
* built with devkitPPC r38, libogc 2.2.1 and libfat 1.1.5 with UStealth Mod

Expand Down
Binary file modified builds/genesis_plus_gx_libretro.dll
Binary file not shown.
Binary file modified builds/genplus_cube.dol
Binary file not shown.
Binary file modified builds/genplus_wii.dol
Binary file not shown.
169 changes: 100 additions & 69 deletions core/cart_hw/md_cart.c

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions gx/gx_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Genesis Plus GX video & rendering support
*
* Copyright Eke-Eke (2007-2021), based on original work from Softdev (2006)
* Copyright Eke-Eke (2007-2023), based on original work from Softdev (2006)
*
* Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met:
Expand Down Expand Up @@ -1019,22 +1019,19 @@ void gxCopyScreenshot(gx_texture *texture)
GX_Color4u8(0xff,0xff,0xff,0xff);
GX_TexCoord2f32(0.0, 0.0);
GX_End();
GX_DrawDone();

/* copy EFB to texture */
GX_SetTexCopySrc(0, 0, texture->width * 2, texture->height * 2);
GX_SetTexCopyDst(texture->width, texture->height, texture->format, GX_TRUE);
GX_DrawDone();
GX_CopyTex(texture->data, GX_TRUE);
GX_Flush();

/* wait for copy operation to finish */
/* GX_PixModeSync is only useful if GX_ command follows */
/* we use dummy GX commands to stall CPU execution */
GX_PixModeSync();
GX_LoadTexObj(&screenTexObj, GX_TEXMAP0);
GX_InvalidateTexAll();
GX_Flush();
DCStoreRange(texture->data, texture->width * texture->height * 4);

/* invalidate data cache area corresponding to texture RAM address */
DCInvalidateRange(texture->data, texture->width * texture->height * 4);
}

/* Take Screenshot */
Expand Down
2 changes: 1 addition & 1 deletion gx/gx_video.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Genesis Plus GX video support
*
* Copyright Eke-Eke (2007-2021), based on original work from Softdev (2006)
* Copyright Eke-Eke (2007-2023), based on original work from Softdev (2006)
*
* Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met:
Expand Down

0 comments on commit 704da43

Please sign in to comment.