if (!(red == m_currentRed && green == m_currentGreen && blue == m_currentBlue))
{
- long redPS = (long) (((int) red) / 255.0);
- long bluePS = (long) (((int) blue) / 255.0);
- long greenPS = (long) (((int) green) / 255.0);
-
+ float redPS = (float)(red) / 255.0;
+ float bluePS = (float)(blue) / 255.0;
+ float greenPS = (float)(green) / 255.0;
*m_pstream << redPS << " " << greenPS << " " << bluePS << " setrgbcolor\n";
m_currentRed = red;
m_brush = brush;
// Brush colour
- unsigned char red = m_brush.GetColour ().Red ();
- unsigned char blue = m_brush.GetColour ().Blue ();
- unsigned char green = m_brush.GetColour ().Green ();
+ unsigned char red = m_brush.GetColour().Red();
+ unsigned char blue = m_brush.GetColour().Blue();
+ unsigned char green = m_brush.GetColour().Green();
if (!m_colour)
{
if (!(red == m_currentRed && green == m_currentGreen && blue == m_currentBlue))
{
- long redPS = (long) (((int) red) / 255.0);
- long bluePS = (long) (((int) blue) / 255.0);
- long greenPS = (long) (((int) green) / 255.0);
+ float redPS = (float)(red) / 255.0;
+ float bluePS = (float)(blue) / 255.0;
+ float greenPS = (float)(green) / 255.0;
*m_pstream << redPS << " " << greenPS << " " << bluePS << " setrgbcolor\n";
m_currentRed = red;
m_currentBlue = blue;
if (!(red == m_currentRed && green == m_currentGreen && blue == m_currentBlue))
{
- long redPS = (long) (((int) red) / 255.0);
- long bluePS = (long) (((int) blue) / 255.0);
- long greenPS = (long) (((int) green) / 255.0);
+ float redPS = (float)(red) / 255.0;
+ float bluePS = (float)(blue) / 255.0;
+ float greenPS = (float)(green) / 255.0;
*m_pstream << redPS << " " << greenPS << " " << bluePS << " setrgbcolor\n";
m_currentRed = red;