Cleanup native AbstractSurface methods getRGBImpl, setRGBImpl

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • jfx23
    • Affects Version/s: jfx23
    • Component/s: javafx
    • b26

        Code inspection has revealed cleanup items in the native getRGBImpl and setRGBImpl methods of com.sun.pisces.AbstractSurface (in JAbstractSurface.c).

        There is a missing check for "offset < 0" that should be added to the list of checks near the beginning of the two methods. The Java side already checks for this case before calling the native method, but should be checked in the native code as well. Additionally, dstX and dstY in getRGBImpl, and srcX and srcY in setRGBImpl should be changed to "const" variables, since we rely on them being non-negative.

              Assignee:
              Ambarish Rapte
              Reporter:
              Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: