From 13dbf471095bf5c991bce4d0a3ab3df3d56a9821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 24 Jul 2017 08:48:28 +0200 Subject: [PATCH] Revert "BView: use off_t instead of long." This reverts commit ab3a87ed6e5925dd8f9de119dbf689b6ac8afee5. --- headers/os/interface/View.h | 6 +++--- src/kits/interface/View.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/headers/os/interface/View.h b/headers/os/interface/View.h index 602d29c51e..ddec3dfba8 100644 --- a/headers/os/interface/View.h +++ b/headers/os/interface/View.h @@ -514,7 +514,7 @@ public: void DelayedInvalidate(bigtime_t delay, BRect invalRect); - void SetDiskMode(char* filename, off_t offset); + void SetDiskMode(char* filename, long offset); void BeginPicture(BPicture* a_picture); void AppendToPicture(BPicture* a_picture); @@ -523,13 +523,13 @@ public: void DrawPicture(const BPicture* a_picture); void DrawPicture(const BPicture* a_picture, BPoint where); - void DrawPicture(const char* filename, off_t offset, + void DrawPicture(const char* filename, long offset, BPoint where); void DrawPictureAsync(const BPicture* a_picture); void DrawPictureAsync(const BPicture* a_picture, BPoint where); void DrawPictureAsync(const char* filename, - off_t offset, BPoint where); + long offset, BPoint where); void BeginLayer(uint8 opacity); void EndLayer(); diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index b1567bfaa7..8f164a6987 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -4098,7 +4098,7 @@ BView::EndLineArray() void -BView::SetDiskMode(char* filename, off_t offset) +BView::SetDiskMode(char* filename, long offset) { // TODO: implement // One BeBook version has this to say about SetDiskMode(): @@ -4280,7 +4280,7 @@ BView::DrawPicture(const BPicture* picture, BPoint where) void -BView::DrawPicture(const char* filename, off_t offset, BPoint where) +BView::DrawPicture(const char* filename, long offset, BPoint where) { if (!filename) return; @@ -4317,7 +4317,7 @@ BView::DrawPictureAsync(const BPicture* picture, BPoint where) void -BView::DrawPictureAsync(const char* filename, off_t offset, BPoint where) +BView::DrawPictureAsync(const char* filename, long offset, BPoint where) { if (!filename) return;