@@ -20,6 +20,7 @@ import Events.HECs
20
20
import GUI.Types
21
21
import GUI.ViewerColours
22
22
import GUI.Timeline.CairoDrawing
23
+ import Debug.Trace
23
24
24
25
import Graphics.UI.Gtk hiding (rectangle )
25
26
import Graphics.Rendering.Cairo
@@ -321,10 +322,11 @@ scrollView surface old new hecs = do
321
322
-- and not only the newly exposed area. This is comparatively very cheap.
322
323
updateXScaleArea :: TimelineState -> Timestamp -> IO ()
323
324
updateXScaleArea TimelineState {.. } lastTx = do
325
+ traceM " updateXScaleArea"
324
326
-- TODO: get rid of this Just
325
327
Just win <- widgetGetWindow timelineXScaleArea
326
328
Rectangle _ _ width _ <- widgetGetAllocation timelineDrawingArea
327
- Rectangle _ _ xScaleAreaHeight _ <- widgetGetAllocation timelineXScaleArea
329
+ Rectangle _ _ _ xScaleAreaHeight <- widgetGetAllocation timelineXScaleArea
328
330
scaleValue <- readIORef scaleIORef
329
331
-- Snap the view to whole pixels, to avoid blurring.
330
332
hadjValue0 <- adjustmentGetValue timelineAdj
@@ -342,6 +344,7 @@ renderYScaleArea :: ViewParameters -> HECs -> DrawingArea -> Render ()
342
344
renderYScaleArea ViewParameters {maxSpkValue, labelsMode, viewTraces,
343
345
histogramHeight, minterval}
344
346
hecs yScaleArea = do
347
+ traceM " updateXScaleArea"
345
348
let maxP = maxSparkPool hecs
346
349
maxH = fromIntegral $ maxYHistogram hecs
347
350
Rectangle _ _ xoffset _ <- liftIO $ widgetGetAllocation yScaleArea
0 commit comments