mirror of
https://github.com/fadden/6502bench.git
synced 2025-02-08 05:30:35 +00:00
Minor tweaks
This commit is contained in:
parent
ca50730611
commit
72d8498fe0
@ -186,7 +186,7 @@ namespace PluginCommon {
|
||||
/// <remarks>
|
||||
/// Might want a way to specify that the background shouldn't be drawn at all.
|
||||
/// </remarks>
|
||||
/// <param name="vb">Bitma to draw on.</param>
|
||||
/// <param name="vb">Bitmap to draw on.</param>
|
||||
/// <param name="ch">Character to draw.</param>
|
||||
/// <param name="xc">X coord of upper-left pixel.</param>
|
||||
/// <param name="yc">Y coord of upper-left pixel.</param>
|
||||
|
@ -315,6 +315,11 @@ namespace SourceGen {
|
||||
/// <param name="value">Setting value (integer enum index).</param>
|
||||
public void SetEnum(string name, Type enumType, int value) {
|
||||
string newVal = Enum.GetName(enumType, value);
|
||||
if (newVal == null) {
|
||||
// Shouldn't be possible if an enum value of the correct type is passed in.
|
||||
Debug.WriteLine("Unable to get enum name type=" + enumType + " value=" + value);
|
||||
return;
|
||||
}
|
||||
if (!mSettings.TryGetValue(name, out string oldValue) || oldValue != newVal) {
|
||||
mSettings[name] = newVal;
|
||||
Dirty = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user