diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2018-01-07 00:39:33 +1100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2018-03-01 10:54:32 +0100 |
commit | c3074cb5784329eaf558c2f58d96a64085b42d48 (patch) | |
tree | 8f166e61c76fba2e6f118b4f98f615d917e7d709 /vcl/win | |
parent | b4f3af91d344d5f8c18e060615360e2a6633b63f (diff) |
vcl: remove dead code
I have converted the debug code that causes a force
redraw/widget_queue_draw/dumpframes to be activated when using the
environment variable VCL_GTK3_PAINTDEBUG=1
Change-Id: Ia2d41dbd42b5b45f97b195efa15c91674f5956bf
Reviewed-on: https://gerrit.libreoffice.org/47493
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/salprn.cxx | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx index aa9c5173a1ba..3a0b664953a6 100644 --- a/vcl/win/gdi/salprn.cxx +++ b/vcl/win/gdi/salprn.cxx @@ -775,18 +775,15 @@ static void ImplJobSetupToDevMode( WinSalInfoPrinter const * pPrinter, const Imp case PAPER_TABLOID: pDevModeW->dmPaperSize = DMPAPER_TABLOID; break; -#if 0 - //http://msdn.microsoft.com/en-us/library/ms776398(VS.85).aspx - //DMPAPER_ENV_B6 is documented as: - //"DMPAPER_ENV_B6 35 Envelope B6 176 x 125 mm" - //which is the wrong way around, it is surely 125 x 176, i.e. - //compare DMPAPER_ENV_B4 and DMPAPER_ENV_B4 as - //DMPAPER_ENV_B4 33 Envelope B4 250 x 353 mm - //DMPAPER_ENV_B5 34 Envelope B5 176 x 250 mm - case PAPER_B6_ISO: - pDevModeW->dmPaperSize = DMPAPER_ENV_B6; - break; -#endif + + // http://msdn.microsoft.com/en-us/library/ms776398(VS.85).aspx + // DMPAPER_ENV_B6 is documented as: + // "DMPAPER_ENV_B6 35 Envelope B6 176 x 125 mm" + // which is the wrong way around, it is surely 125 x 176, i.e. + // compare DMPAPER_ENV_B4 and DMPAPER_ENV_B4 as + // DMPAPER_ENV_B4 33 Envelope B4 250 x 353 mm + // DMPAPER_ENV_B5 34 Envelope B5 176 x 250 mm + case PAPER_ENV_C4: pDevModeW->dmPaperSize = DMPAPER_ENV_C4; break; |