diff --git a/PluginCommon/Interfaces.cs b/PluginCommon/Interfaces.cs index 832cac3..9fa19e6 100644 --- a/PluginCommon/Interfaces.cs +++ b/PluginCommon/Interfaces.cs @@ -323,7 +323,8 @@ namespace PluginCommon { /// Will be null for direct-color images. Do not modify. /// /// - /// It's possible, but weird, for the array to have a length of zero. + /// It's possible, but weird, for the array to have a length of zero. For best results + /// with GIF images, only one palette entry should be transparent. /// int[] GetPalette(); diff --git a/PluginCommon/VisBitmap8.cs b/PluginCommon/VisBitmap8.cs index d9ee6d9..491cd4e 100644 --- a/PluginCommon/VisBitmap8.cs +++ b/PluginCommon/VisBitmap8.cs @@ -64,6 +64,12 @@ namespace PluginCommon { return mPalette[pix]; } + /// + /// Gets the color index for a single pixel. + /// + /// X coordinate. + /// Y coordinate. + /// Color index. public byte GetPixelIndex(int x, int y) { return mData[x + y * Width]; } diff --git a/SourceGen/AppSettings.cs b/SourceGen/AppSettings.cs index a2d1331..afe97ef 100644 --- a/SourceGen/AppSettings.cs +++ b/SourceGen/AppSettings.cs @@ -187,6 +187,7 @@ namespace SourceGen { /// /// public AppSettings GetCopy() { + // TODO: make this a copy constructor? AppSettings copy = new AppSettings(); //copy.mSettings.EnsureCapacity(mSettings.Count); foreach (KeyValuePair kvp in mSettings) { @@ -202,7 +203,7 @@ namespace SourceGen { /// discarding the object itself, which is useful in case something has cached a /// reference to the singleton. /// - /// + /// Object with new settings. public void ReplaceSettings(AppSettings newSettings) { // Clone the new list, and stuff it into the old object. This way the // objects aren't sharing lists. @@ -213,8 +214,7 @@ namespace SourceGen { /// /// Merges settings from another settings object into this one. /// - /// - /// + /// Object with new settings. public void MergeSettings(AppSettings newSettings) { foreach (KeyValuePair kvp in newSettings.mSettings) { mSettings[kvp.Key] = kvp.Value; diff --git a/SourceGen/Tools/Omf/WpfGui/OmfViewer.xaml b/SourceGen/Tools/Omf/WpfGui/OmfViewer.xaml index e80d806..60d92cc 100644 --- a/SourceGen/Tools/Omf/WpfGui/OmfViewer.xaml +++ b/SourceGen/Tools/Omf/WpfGui/OmfViewer.xaml @@ -35,8 +35,8 @@ limitations under the License. a Library file a file of indeterminate type - This is {0}, with {1} segment - This is {0}, with {1} segments + This is {0}, with {1} segment (double-click to examine): + This is {0}, with {1} segments (double-click to examine): This is not an Apple II OMF file Unable to prepare data file for project. diff --git a/SourceGen/Tools/VirtualHexDump.cs b/SourceGen/Tools/VirtualHexDump.cs index 08e608d..8bc1f0c 100644 --- a/SourceGen/Tools/VirtualHexDump.cs +++ b/SourceGen/Tools/VirtualHexDump.cs @@ -32,7 +32,6 @@ namespace SourceGen.Tools { /// demand and retain the results indefinitely. /// public class VirtualHexDump : IList, INotifyCollectionChanged, INotifyPropertyChanged { - /// /// /// Data to display. We currently require that the entire file fit in memory, /// which is reasonable because we impose a 2^24 (16MB) limit. diff --git a/SourceGen/Tools/WpfGui/HexDumpViewer.xaml b/SourceGen/Tools/WpfGui/HexDumpViewer.xaml index 795321e..dd3616d 100644 --- a/SourceGen/Tools/WpfGui/HexDumpViewer.xaml +++ b/SourceGen/Tools/WpfGui/HexDumpViewer.xaml @@ -42,7 +42,7 @@ limitations under the License. - + + diff --git a/SourceGen/WpfGui/EditAppSettings.xaml.cs b/SourceGen/WpfGui/EditAppSettings.xaml.cs index aed3010..3473962 100644 --- a/SourceGen/WpfGui/EditAppSettings.xaml.cs +++ b/SourceGen/WpfGui/EditAppSettings.xaml.cs @@ -45,6 +45,7 @@ namespace SourceGen.WpfGui { /// /// Reference to main controller. Needed to push settings out when Apply/OK is clicked. + /// TODO: use an Event instead? /// private MainController mMainCtrl;