Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4359546

Textures are shifted when being printed

XMLWordPrintable

    • 2d
    • generic
    • solaris_8

      I've attached a demo program which creates a 4 by 4 texture.
      This is being mapped on a large rectangle and the result is being
      printed. I have tested on

      WindowsNT 4.00.1381 with JDK 1.3.0
      Sparc Solaris 8 with Solaris_JDK_1.2.1_04c
      Sparc Solaris 8 with 1.3.0-beta_refresh

      One can clearly see that the texture is sometimes shifted in both
      x and y directions.

      A second texture is commented out. This should simply draw four dots.
      BTW: There is no drawPoint() method in Graphics or Graphics2D.

      The test case shows another bug. It prints out lots of

      try to print page 0
      try to print page 0
      try to print page 0
      try to print page 0
      try to print page 0
      try to print page 0
      try to print page 1


      messages on the command line.


      The source code is in the attachment area. To reproduce do:

      javac -d . Texture.java PrintPage.java Start.java
      java printtest.Start

            prr Philip Race
            tviessma Thomas Viessmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: