OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
036d129
)
[VM][FMTOWNS][CRTC] Fix forcing to calcurate CRTC clock per setting.
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Sat, 16 May 2020 16:53:40 +0000
(
01:53
+0900)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Sat, 16 May 2020 16:53:40 +0000
(
01:53
+0900)
source/src/vm/fmtowns/towns_crtc.cpp
patch
|
blob
|
history
diff --git
a/source/src/vm/fmtowns/towns_crtc.cpp
b/source/src/vm/fmtowns/towns_crtc.cpp
index
f283179
..
af993ac
100644
(file)
--- a/
source/src/vm/fmtowns/towns_crtc.cpp
+++ b/
source/src/vm/fmtowns/towns_crtc.cpp
@@
-442,7
+442,7
@@
void TOWNS_CRTC::set_crtc_clock(uint16_t val)
static const double clocks[] = {
28.6363e6, 24.5454e6, 25.175e6, 21.0525e6
};
- if(
clocks[clksel]
!= crtc_clock) {
+ if(
(1.0e6 / clocks[clksel])
!= crtc_clock) {
crtc_clock = 1.0e6 / clocks[clksel];
req_recalc = true;
}