Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve formating of TCanvas
  • Loading branch information
linev committed Jun 8, 2017
commit 8e081b3ddb7d54cee52f304178d8ec407ade3f8b
10 changes: 5 additions & 5 deletions graf2d/gpad/src/TCanvas.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2251,14 +2251,14 @@ void TCanvas::Update()

if (!fCanvasImp->PerformUpdate()) {

if (!IsBatch()) FeedbackMode(kFALSE); // Goto double buffer mode
if (!IsBatch()) FeedbackMode(kFALSE); // Goto double buffer mode

if (!UseGL())
PaintModified(); // Repaint all modified pad's
if (!UseGL()) PaintModified(); // Repaint all modified pad's

Flush(); // Copy all pad pixmaps to the screen
Flush(); // Copy all pad pixmaps to the screen

SetCursor(kCross);

}

fUpdating = kFALSE;
Expand Down Expand Up @@ -2305,7 +2305,7 @@ void TCanvas::CreatePainter()
//some calls to batch "virtual X".
if (!UseGL() || fBatch) {
fPainter = !fCanvasImp ? 0 : fCanvasImp->CreatePadPainter();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is

if (fCanvasImp)
  fPainter = fCanvasImp->CreatePadPainter();

maybe a more readable version of this code?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a more readable version of this code?

Done

if (!fPainter) fPainter = new TPadPainter;//Do not need plugin manager for this!
if (!fPainter) fPainter = new TPadPainter; // Do not need plugin manager for this!
} else {
fPainter = TVirtualPadPainter::PadPainter("gl");
if (!fPainter) {
Expand Down