Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
pce: Ensure correct value of CYCLES_PER_LINE
Browse files Browse the repository at this point in the history
Closes #167
  • Loading branch information
kbeckmann committed Nov 20, 2021
1 parent 37479d8 commit bdfef80
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Core/Src/porting/pce/main_pce.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#include <odroid_system.h>
#include <string.h>
#include "shared.h"

// shared.h includes sms.h which defined CYCLES_PER_LINE.
// hard_pce.h defines it to the desired value.
// It's a hack, but it'll do.
#undef CYCLES_PER_LINE

#include <hard_pce.h>
#include <romdb_pce.h>
#include "lz4_depack.h"
Expand All @@ -11,18 +18,12 @@
#include "gw_lcd.h"
#include "gw_linker.h"
#include "gw_buttons.h"
#include "shared.h"
#include "rom_manager.h"
#include "common.h"
#include "sound_pce.h"
#include "appid.h"
#include "lzma.h"

// TODO: #167
// Included from Core/Src/porting/pce/main_pce.c, CYCLES_PER_LINE is defined to 455 in retro-go-stm32/huexpress-go/components/huexpress/engine/hard_pce.h.
// But because of a later include, shared.h -> smsplus/sms.h defines it to 228.
// 455 seems like the correct value, but I have no clue what this changes.

//#define PCE_SHOW_DEBUG
//#define XBUF_WIDTH (480 + 32)
//#define XBUF_HEIGHT (242 + 32)
Expand Down

0 comments on commit bdfef80

Please sign in to comment.