mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2024-12-28 04:23:42 +01:00
correction of a minor position issue in Dialogs on CG + better definition and use of GRAYMODEOK
This commit is contained in:
parent
44e966039c
commit
d3c6e319d9
3 changed files with 9 additions and 9 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
|
||||
#if !defined(FXCG50) && defined(COLOR2BIT)
|
||||
#define GRAYMODEOK
|
||||
#define GRAYMODEOK 1
|
||||
#endif
|
||||
|
||||
#define USB_FEATURE 1
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
extern font_t fontRPG;
|
||||
#define FONT_USED fontRPG
|
||||
|
||||
#ifdef GRAYMODEOK
|
||||
#if GRAYMODEOK==1
|
||||
#include <gint/gray.h>
|
||||
uint32_t *lightVRAMnext, *darkVRAMnext;
|
||||
uint32_t *lightVRAMcurrent, *darkVRAMcurrent;
|
||||
|
@ -24,7 +24,7 @@ void blit()
|
|||
{
|
||||
dupdate();
|
||||
|
||||
#ifdef GRAYMODEOK
|
||||
#if GRAYMODEOK==1
|
||||
dgray_getvram( &lightVRAMnext, &darkVRAMnext );
|
||||
dgray_getscreen( &lightVRAMcurrent, &darkVRAMcurrent );
|
||||
|
||||
|
@ -114,7 +114,7 @@ int showtext_opt(Game *game, bopti_image_t *face, char *text,
|
|||
while(game->frame_duration < 1000) sleep();
|
||||
game->frame_duration = 0;
|
||||
/* Ask the user to press EXE to continue. */
|
||||
dtext(1, y, C_BLACK, "[EXE] To continue ...");
|
||||
dtext(BOX_HEIGHT*PXSIZE, y, C_BLACK, "[EXE] to continue ...");
|
||||
blit();
|
||||
while(getkey().key != KEY_EXE) sleep();
|
||||
}
|
||||
|
|
10
src/main.c
10
src/main.c
|
@ -12,7 +12,7 @@
|
|||
#endif //USB_FEATURE
|
||||
|
||||
|
||||
#ifdef GRAYMODEOK
|
||||
#if GRAYMODEOK==1
|
||||
#include <gint/gray.h>
|
||||
#endif //GRAYMODEOK
|
||||
|
||||
|
@ -41,7 +41,7 @@ Game game = {
|
|||
{
|
||||
if (game.screenshot && usb_is_open()) {
|
||||
|
||||
#ifdef GRAYMODEOK // This is a trick, if GRAYMODEOK is defined then
|
||||
#if GRAYMODEOK==1 // This is a trick, if GRAYMODEOK is defined then
|
||||
// we make the code accessible
|
||||
|
||||
if (dgray_enabled())
|
||||
|
@ -58,7 +58,7 @@ Game game = {
|
|||
|
||||
if (game.record && usb_is_open()) {
|
||||
|
||||
#ifdef GRAYMODEOK
|
||||
#if GRAYMODEOK==1
|
||||
|
||||
if (dgray_enabled())
|
||||
usb_fxlink_videocapture_gray(false);
|
||||
|
@ -95,7 +95,7 @@ int main(void) {
|
|||
|
||||
/* start grayscale engine */
|
||||
|
||||
#ifdef GRAYMODEOK
|
||||
#if GRAYMODEOK==1
|
||||
dgray(DGRAY_ON);
|
||||
#endif
|
||||
|
||||
|
@ -129,7 +129,7 @@ int main(void) {
|
|||
|
||||
|
||||
/* shutdown grayengine*/
|
||||
#ifdef GRAYMODEOK
|
||||
#if GRAYMODEOK==1
|
||||
dgray(DGRAY_OFF);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue