diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-01-01 20:05:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-01 20:05:42 +0100 |
| commit | a63ad76603accc70747a2073c78139299064c43b (patch) | |
| tree | b64302ca02847a73d9c8445c11023cfc34314dff /src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx | |
| parent | 23e8d831a868774c014993d52eead0cbe105f218 (diff) | |
FLUID refactor and macOS warnings removed (#623)
P renamed to g_project
class Project renamed to class Fluid_Project
fixes macOS type cast warnings
Diffstat (limited to 'src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx index 552da03f9..d3f3d343a 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx @@ -92,8 +92,8 @@ void Fl_Quartz_Graphics_Driver::copy_offscreen(int x, int y, int w, int h, Fl_Of // draw portion srcx,srcy,w,h of osrc to position x,y (top-left) of the graphics driver's surface CGContextRef src = (CGContextRef)osrc; void *data = CGBitmapContextGetData(src); - int sw = CGBitmapContextGetWidth(src); - int sh = CGBitmapContextGetHeight(src); + int sw = (int)CGBitmapContextGetWidth(src); + int sh = (int)CGBitmapContextGetHeight(src); CGImageRef img; #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 if (fl_mac_os_version >= 100400) img = CGBitmapContextCreateImage(src); // requires 10.4 |
