mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-26 00:31:44 +00:00
Default enable half scanlines because ... nostalgia :)
This commit is contained in:
parent
6a519b7b5f
commit
1d089af199
@ -47,7 +47,7 @@ static uint8_t interface_font[5][0x4000] = { { 0 } }; // interface font
|
||||
static color_mode_t color_mode = COLOR_MODE_DEFAULT;
|
||||
static mono_mode_t mono_mode = MONO_MODE_DEFAULT;
|
||||
static scanline_color_fn scanline_color[2] = { NULL };
|
||||
static uint8_t half_scanlines = false;
|
||||
static uint8_t half_scanlines = 1;
|
||||
|
||||
// video line offsets
|
||||
uint16_t video_line_offset[TEXT_ROWS + /*VBL:*/ 8 + /*extra:*/1] = {
|
||||
@ -1016,7 +1016,7 @@ static void display_prefsChanged(const char *domain) {
|
||||
mono_mode = prefs_parseLongValue(domain, PREF_MONO_MODE, &lVal, /*base:*/10) ? getMonoMode(lVal) : MONO_MODE_DEFAULT;
|
||||
|
||||
bool bVal = false;
|
||||
half_scanlines = prefs_parseBoolValue(domain, PREF_SHOW_HALF_SCANLINES, &bVal) ? (bVal ? 1 : 0) : 0;
|
||||
half_scanlines = prefs_parseBoolValue(domain, PREF_SHOW_HALF_SCANLINES, &bVal) ? (bVal ? 1 : 0) : 1;
|
||||
|
||||
_initialize_display();
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
typedef void (*fb_plotter_fn)(color_mode_t, uint16_t, PIXEL_TYPE *);
|
||||
typedef PIXEL_TYPE (*fb_scanline_fn)(PIXEL_TYPE color0, PIXEL_TYPE color2);
|
||||
|
||||
static uint8_t half_scanlines = false;
|
||||
static uint8_t half_scanlines = 1;
|
||||
static fb_plotter_fn pixelPlotter[NUM_COLOROPTS] = { NULL };
|
||||
static fb_scanline_fn getHalfColor[NUM_COLOROPTS][2] = { { NULL } };
|
||||
|
||||
@ -426,7 +426,7 @@ static void ntsc_prefsChanged(const char *domain) {
|
||||
mono_mode_t mono_mode = prefs_parseLongValue(domain, PREF_MONO_MODE, &lVal, /*base:*/10) ? getMonoMode(lVal) : MONO_MODE_DEFAULT;
|
||||
|
||||
bool bVal = false;
|
||||
half_scanlines = prefs_parseBoolValue(domain, PREF_SHOW_HALF_SCANLINES, &bVal) ? (bVal ? 1 : 0) : 0;
|
||||
half_scanlines = prefs_parseBoolValue(domain, PREF_SHOW_HALF_SCANLINES, &bVal) ? (bVal ? 1 : 0) : 1;
|
||||
|
||||
initChromaPhaseTables(color_mode, mono_mode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user