Skip to content

Commit

Permalink
platform-views: fix wrong size of texture id (#379)
Browse files Browse the repository at this point in the history
This change fixes wrong size of texture id.

Related issue: #41

Signed-off-by: Hidenori Matsubayashi <Hidenori.Matsubayashi@gmail.com>
  • Loading branch information
HidenoriMatsubayashi authored Aug 21, 2023
1 parent 98e15f3 commit 311e9f1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class FlutterDesktopPlatformView {

bool IsFocused() const { return focused_; }

void SetTextureId(int texture_id) { texture_id_ = texture_id; }
void SetTextureId(int64_t texture_id) { texture_id_ = texture_id; }

int GetTextureId() const { return texture_id_; }
int64_t GetTextureId() const { return texture_id_; }

virtual void Resize(double width, double height) = 0;

Expand All @@ -49,7 +49,7 @@ class FlutterDesktopPlatformView {
private:
flutter::PluginRegistrar* registrar_;
int view_id_;
int texture_id_;
int64_t texture_id_;
bool focused_;
};

Expand Down

0 comments on commit 311e9f1

Please sign in to comment.