Remove unused variables, fix compiler warnings

This commit is contained in:
Albrecht Schlosser
2024-05-09 19:55:53 +02:00
parent 79ddf2f2b8
commit da58045c23
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -281,7 +281,6 @@ void Fl_Menu_Item::draw(int x, int y, int w, int h, const Fl_Menu_* m,
l.size = labelsize_ ? labelsize_ : m ? m->textsize() : FL_NORMAL_SIZE;
l.color = labelcolor_ ? labelcolor_ : m ? m->textcolor() : int(FL_FOREGROUND_COLOR);
if (!active()) l.color = fl_inactive((Fl_Color)l.color);
Fl_Color color = m ? m->color() : FL_GRAY;
if (selected) {
Fl_Color r = m ? m->selection_color() : FL_SELECTION_COLOR;
Fl_Boxtype b = m && m->down_box() ? m->down_box() : FL_FLAT_BOX;
@@ -135,7 +135,7 @@ int Fl_PDF_File_Surface::begin_document(const char* defaultfilename,
int Fl_PDF_GDI_File_Surface::begin_job(const char *defaultfname, char **perr_message) {
int err = 0;
abortPrint = FALSE;
HANDLE hPr2;
err = OpenPrinterA(pdf_printer_name_, &hPr2, NULL);
if (err == 0) {
@@ -333,7 +333,7 @@ void Fl_PDF_GDI_File_Surface::end_job(void)
if (EndDoc (hPr) <= 0) {
fl_message ("Error in EndDoc() call");
}
int err = DeleteDC (hPr);
DeleteDC (hPr);
}
hPr = NULL;
}