Mercurial > dwindows
comparison dwtestoo.cpp @ 2920:c6b699a441fe
C++: Fix a couple minor errors while attempting to fix Mac crash.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 28 Dec 2022 21:13:04 +0000 |
parents | e609aa6a5b93 |
children | 235fef840df2 |
comparison
equal
deleted
inserted
replaced
2919:e609aa6a5b93 | 2920:c6b699a441fe |
---|---|
206 y = i*fheight; | 206 y = i*fheight; |
207 pixmap->SetColor(fileline < 0 ? DW_CLR_WHITE : fileline % 16, 1 + (fileline % 15)); | 207 pixmap->SetColor(fileline < 0 ? DW_CLR_WHITE : fileline % 16, 1 + (fileline % 15)); |
208 if(!hpm) | 208 if(!hpm) |
209 { | 209 { |
210 snprintf(buf, 15, "%6.6d", i+row); | 210 snprintf(buf, 15, "%6.6d", i+row); |
211 pixmap->DrawText(0, y, buf); | 211 pixmap1->DrawText(0, y, buf); |
212 } | 212 } |
213 pLine = lp[i+row]; | 213 pLine = lp[i+row]; |
214 pixmap->DrawText(0, y, pLine+col); | 214 pixmap->DrawText(0, y, pLine+col); |
215 } | 215 } |
216 } | 216 } |
946 notebook->PageSetText(notebookpage, "buttons and entry"); | 946 notebook->PageSetText(notebookpage, "buttons and entry"); |
947 | 947 |
948 // Create Notebook Page 2 - Render | 948 // Create Notebook Page 2 - Render |
949 notebookbox = new DW::Box(DW_VERT, 5); | 949 notebookbox = new DW::Box(DW_VERT, 5); |
950 CreateRender(notebookbox); | 950 CreateRender(notebookbox); |
951 notebookpage = notebook->PageNew(0, TRUE); | 951 notebookpage = notebook->PageNew(); |
952 notebook->Pack(notebookpage, notebookbox); | 952 notebook->Pack(notebookpage, notebookbox); |
953 notebook->PageSetText(notebookpage, "render"); | 953 notebook->PageSetText(notebookpage, "render"); |
954 | 954 |
955 // Finalize the window | 955 // Finalize the window |
956 this->SetSize(640, 550); | 956 this->SetSize(640, 550); |