diff options
Diffstat (limited to 'src/gui_photon.c')
-rw-r--r-- | src/gui_photon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui_photon.c b/src/gui_photon.c index 1000a5eb5..7b1462a1a 100644 --- a/src/gui_photon.c +++ b/src/gui_photon.c @@ -1933,10 +1933,11 @@ gui_mch_setmouse(int x, int y) /* * Return the RGB value of a pixel as a long. */ - long_u + guicolor_T gui_mch_get_rgb(guicolor_T pixel) { - return PgRGB(PgRedValue(pixel), PgGreenValue(pixel), PgBlueValue(pixel)); + return (guicolor_T)(PgRGB(PgRedValue(pixel), + PgGreenValue(pixel), PgBlueValue(pixel))); } void |