Skip to content

Commit

Permalink
Revert "Fix blinking text in 40 and 80 text modes (#161)" (#162)
Browse files Browse the repository at this point in the history
This reverts commit f692435.
  • Loading branch information
ejaquay authored Dec 6, 2023
1 parent f692435 commit f25ec3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
9 changes: 1 addition & 8 deletions coco3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ This file is part of VCC (Virtual Color Computer).

//int CPUExeca(int);

#define RENDERS_PER_BLINK_TOGGLE 16

//****************************************
static double SoundInterupt=0;
static double NanosToSoundSample=SoundInterupt;
Expand Down Expand Up @@ -104,12 +102,7 @@ float RenderFrame (SystemState *RFState)
static unsigned short FrameCounter=0;

//********************************Start of frame Render*****************************************************

// Blink state toggle
if (BlinkPhase++ > RENDERS_PER_BLINK_TOGGLE) {
TogBlinkState();
BlinkPhase = 0;
}
SetBlinkState(BlinkPhase);

// VSYNC goes Low
VSYNC(0);
Expand Down
4 changes: 2 additions & 2 deletions tcc1014graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -9511,9 +9511,9 @@ void DrawBottomBoarder32(SystemState *DTState)
return;
}

void TogBlinkState()
void SetBlinkState(unsigned char Tmp)
{
BlinkState = BlinkState ^ 1;
BlinkState=Tmp;
return;
}

Expand Down
2 changes: 1 addition & 1 deletion tcc1014graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int GetGraphicsMode();

//void Cls(unsigned int);
unsigned char SetScanLines(unsigned char);
void TogBlinkState();
void SetBlinkState(unsigned char);
static unsigned char Lpf[4]={192,199,225,225}; // 2 is really undefined but I gotta put something here.
static unsigned char VcenterTable[4]={29,23,12,12};
static unsigned char TopOffScreenTable[4] = { 11,14,11,11 };
Expand Down

0 comments on commit f25ec3c

Please sign in to comment.