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;
for (unsigned int i=0; i<selection_data->length/sizeof(GdkAtom); i++)
{
+ char *name = gdk_atom_name (atoms[i]);
+ if (name) printf( "Format available: %s.\n", name );
+
if (atoms[i] == clipboard->m_targetRequested)
{
clipboard->m_formatSupported = TRUE;
for (unsigned int i=0; i<selection_data->length/sizeof(GdkAtom); i++)
{
+ char *name = gdk_atom_name (atoms[i]);
+ if (name) printf( "Format available: %s.\n", name );
+
if (atoms[i] == clipboard->m_targetRequested)
{
clipboard->m_formatSupported = TRUE;