Modify

Opened 13 months ago

Closed 13 months ago

Last modified 4 months ago

#3835 closed Bug (Fixed)

Replace constants with magic numbers

Reported by: anonymous Owned by: Jpm
Milestone: 3.3.15.5 Component: Documentation
Version: 3.3.14.5 Severity: None
Keywords: Cc:

Description

Constants are already declared, but not used in the documentation.

TraySetClick

$TRAY_CLICK_SHOW
$TRAY_CLICK_PRIMARYDOWN
$TRAY_CLICK_PRIMARYUP
$TRAY_DBLCLICK_PRIMARY
$TRAY_CLICK_SECONDARYDOWN
$TRAY_CLICK_SECONDARYUP
$TRAY_DBLCLICK_SECONDARY
$TRAY_CLICK_HOVERING

_GDIPlus_GraphicsSetCompositingMode

$GDIP_COMPOSITINGMODESOURCEOVER
$GDIP_COMPOSITINGMODESOURCECOPY

_GDIPlus_GraphicsSetCompositingQuality

$GDIP_COMPOSITINGQUALITYDEFAULT
$GDIP_COMPOSITINGQUALITYHIGHSPEED
$GDIP_COMPOSITINGQUALITYHIGHQUALITY
$GDIP_COMPOSITINGQUALITYGAMMACORRECTED
$GDIP_COMPOSITINGQUALITYASSUMELINEAR

_GDIPlus_GraphicsSetInterpolationMode

$GDIP_INTERPOLATIONMODE_DEFAULT
$GDIP_INTERPOLATIONMODE_LOWQUALITY
$GDIP_INTERPOLATIONMODE_HIGHQUALITY
$GDIP_INTERPOLATIONMODE_BILINEAR
$GDIP_INTERPOLATIONMODE_BICUBIC
$GDIP_INTERPOLATIONMODE_NEARESTNEIGHBOR
$GDIP_INTERPOLATIONMODE_HIGHQUALITYBILINEAR
$GDIP_INTERPOLATIONMODE_HIGHQUALITYBICUBIC

_GDIPlus_GraphicsSetPixelOffsetMode

$GDIP_PIXELOFFSETMODE_DEFAULT
$GDIP_PIXELOFFSETMODE_HIGHSPEED
$GDIP_PIXELOFFSETMODE_HIGHQUALITY
$GDIP_PIXELOFFSETMODE_NONE
$GDIP_PIXELOFFSETMODE_HALF

_GDIPlus_GraphicsSetSmoothingMode

$GDIP_SMOOTHINGMODE_DEFAULT
$GDIP_SMOOTHINGMODE_HIGHSPEED
$GDIP_SMOOTHINGMODE_HIGHQUALITY 
$GDIP_SMOOTHINGMODE_NONE
$GDIP_SMOOTHINGMODE_ANTIALIAS8X4
$GDIP_SMOOTHINGMODE_ANTIALIAS
$GDIP_SMOOTHINGMODE_ANTIALIAS8X8

_GDIPlus_GraphicsSetTextRenderingHint

$GDIP_TEXTRENDERINGHINT_SYSTEMDEFAULT
$GDIP_TEXTRENDERINGHINT_SINGLEBITPERPIXELGRIDFIT
$GDIP_TEXTRENDERINGHINT_SINGLEBITPERPIXEL
$GDIP_TEXTRENDERINGHINT_ANTIALIASGRIDFIT
$GDIP_TEXTRENDERINGHINT_ANTIALIAS
$GDIP_TEXTRENDERINGHINT_CLEARTYPEGRIDFIT

+ Remove duplicates

$GDIP_TextRenderingHintSystemDefault
$GDIP_TextRenderingHintSingleBitPerPixelGridFit
$GDIP_TextRenderingHintSingleBitPerPixel
$GDIP_TextRenderingHintAntialiasGridFit
$GDIP_TextRenderingHintAntialias
$GDIP_TextRenderingHintClearTypeGridFit

AutoIt Version: 3.3.14.5 / 3.3.15.4

Attachments (0)

Change History (5)

comment:1 Changed 13 months ago by anonymous

Lead to a uniform style

$GDIP_COMPOSITINGMODE_SOURCEOVER
$GDIP_COMPOSITINGMODE_SOURCECOPY
$GDIP_COMPOSITINGQUALITY_DEFAULT
$GDIP_COMPOSITINGQUALITY_HIGHSPEED
$GDIP_COMPOSITINGQUALITY_HIGHQUALITY
$GDIP_COMPOSITINGQUALITY_GAMMACORRECTED
$GDIP_COMPOSITINGQUALITY_ASSUMELINEAR

comment:2 Changed 13 months ago by anonymous

$TRAY_CLICK_SHOW
$TRAY_CLICK_PRIMARYDOWN
$TRAY_CLICK_PRIMARYUP
$TRAY_CLICK_PRIMARYDBL
$TRAY_CLICK_SECONDARYDOWN
$TRAY_CLICK_SECONDARYUP
$TRAY_CLICK_SECONDARYDBL
$TRAY_CLICK_HOVERING

comment:3 Changed 13 months ago by Jpm

  • Summary changed from Replace magic numbers with constants to Replace constants with magic numbers

comment:4 Changed 13 months ago by Jpm

  • Milestone set to 3.3.15.5
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [12580] in version: 3.3.15.5

comment:5 Changed 4 months ago by Jpm

I revert the GDIPlus.au3 regression
Fix in 3.3.16.1
Sorry for the trouble

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jpm.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.