X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f3286d17d6f65c3acddabb45545c2ef1b0d9b20..40f7145ca55ccf1b197e70acf79bbd4aa5d85145:/samples/scrollsub/scrollsub.cpp?ds=sidebyside diff --git a/samples/scrollsub/scrollsub.cpp b/samples/scrollsub/scrollsub.cpp index c7ce613e4e..3d16d9e91d 100644 --- a/samples/scrollsub/scrollsub.cpp +++ b/samples/scrollsub/scrollsub.cpp @@ -306,12 +306,12 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) ) (0-scroll_x < size_x) && (0-scroll_y < size_y)) { // Has the region on screen been exposed? - if (IsExposed(0,0,100,25)) - { - wxLogMessage( wxT("Redraw first cell") ); + if (IsExposed(0,0,100,25)) + { + wxLogMessage( wxT("Redraw first cell") ); dc.DrawRectangle( 0, 0, 100, 25 ); - dc.DrawText( "First Cell", 5, 5 ); - } + dc.DrawText( "First Cell", 5, 5 ); + } } @@ -321,12 +321,12 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) ) (200-scroll_x < size_x) && (0-scroll_y < size_y)) { // Has the region on screen been exposed? - if (IsExposed(200,0,100,25)) - { - wxLogMessage( wxT("Redraw second cell") ); + if (IsExposed(200,0,100,25)) + { + wxLogMessage( wxT("Redraw second cell") ); dc.DrawRectangle( 200, 0, 100, 25 ); - dc.DrawText( "Second Cell", 205, 5 ); - } + dc.DrawText( "Second Cell", 205, 5 ); + } } }