Ignore:
Timestamp:
11/19/20 13:41:28 (3 years ago)
Author:
bnemhaus
Message:

Expeditee now respects the users antialiasing setting. The previous system

  1. Attempted to respect antialiasing by checking the setting and enabling it if the setting was true
  2. In the process of painting the frame some special items (link marks etc) want to use antialiasing reguardless of setting. This was achieved by turning antialiasing on, doing the thing and then turning it off. This unfortunately meant that, in the scenario that the users antialiasing setting is on, it gets turned off after drawing one of these special items and doesn't get turn on again until all items have been drawn.

The new system still always turns antialiasing on for these special items, but instead of turning it off after, it returns it to the setting it was previously on. This is achieved with two new functions: setTransientAntialiasingOn() and setTransientAntialiasingOff().

On a related note, there was also an issue with some polygons being drawn with a thickness of 0.0f, which was causing them to antialias badly. They now have a thickness of 1.0f.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gio/javafx/JavaFXGraphicsManager.java

    r1198 r1545  
    314314                // TODO: Implement. cts16
    315315        }
     316       
     317        public void setTransientAntialiasingOn() {
     318                // TODO: Implement. Bryce
     319        }
     320       
     321        public void setTransientAntialiasingOff() {
     322                // TODO: Implement. Bryce
     323        }
    316324
    317325        @Override
Note: See TracChangeset for help on using the changeset viewer.