diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-07-31 14:25:03 +0200 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2010-07-31 14:25:03 +0200 |
commit | a67d75a18ec54aa5dff9cf959cc5042e2c808074 (patch) | |
tree | 80ec6fc5cb78a2e5e1889c95f84e357a4d14a984 | |
parent | b7d4364c0dabaf9764c43d51d439eb242e081bb7 (diff) |
Fix horizontal sync start/end calculation.
-rw-r--r-- | tvdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -238,8 +238,8 @@ void tv_dump(void* regs){ printf("-- CRTC %d timings --\n",i); printf("horizDisplay: %d\n",(horizDisplay+1)*8); printf("horizTotal: %d\n",(horizTotal+5)*8); - printf("horizSyncStart: %d\n",(horizStart+1)*8); - printf("horizSyncEnd: %d\n",(DIFFM(horizEnd,horizStart,0x20)+horizStart+1)*8); + printf("horizSyncStart: %d\n",(horizStart-1)*8); + printf("horizSyncEnd: %d\n",(DIFFM(horizEnd,horizStart,0x20)+horizStart-1)*8); printf("horizBlankStart: %d\n",(horizBlankStart+1)*8); printf("horizBlankEnd: %d\n",(DIFFM(horizBlankEnd,horizBlankStart,128)+horizBlankStart+1)*8); printf("vertDisplay: %d\n",vertDisplay+1); |