diff options
author | Bertrand Augereau | 2007-02-18 20:53:06 +0000 |
---|---|---|
committer | Bertrand Augereau | 2007-02-18 20:53:06 +0000 |
commit | 887cf19cac0ff5e606098c034ba0735fa54a9b9e (patch) | |
tree | fbb0f5e538110746d2eaf5f7db5ab084eae40d23 | |
parent | 20e44a4914ae3f99b3dac149be6e87f86fb6dfb5 (diff) | |
download | scummvm-rg350-887cf19cac0ff5e606098c034ba0735fa54a9b9e.tar.gz scummvm-rg350-887cf19cac0ff5e606098c034ba0735fa54a9b9e.tar.bz2 scummvm-rg350-887cf19cac0ff5e606098c034ba0735fa54a9b9e.zip |
NDS : The scaler profiling renders a white line (1 pixel / 1 ms)
svn-id: r25704
-rw-r--r-- | backends/platform/ds/arm9/source/dsmain.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/platform/ds/arm9/source/dsmain.cpp b/backends/platform/ds/arm9/source/dsmain.cpp index 209deeb82b..e73c18badf 100644 --- a/backends/platform/ds/arm9/source/dsmain.cpp +++ b/backends/platform/ds/arm9/source/dsmain.cpp @@ -732,8 +732,10 @@ void displayMode16BitFlipBuffer() { #ifdef SCALER_PROFILE u16 t1 = TIMER1_DATA; TIMER1_CR &= ~TIMER_ENABLE; - u32 dt = t1 - t0; - consolePrintf("%d us\n", (dt * 10240) / 334); + u32 dt = t1 - t0; + u32 dt_us = (dt * 10240) / 334; + u32 dt_ms = dt_us / 1000; + memset(base, 0xFF, dt_ms*2); #endif } #ifdef HEAVY_LOGGING |